Toss the beef cubes with the flour, salt, and pepper until lightly coated. Heat the olive oil in a Dutch oven over medium heat and brown the beef in batches, then set it aside.
Add the onions, mushrooms, carrots, and celery to the same pot. Cook for 5 minutes until the onions soften and the mushrooms release some liquid.
Stir in the garlic and thyme and cook for 1 minute more.
Return the beef to the pot along with the barley, beef broth, and bay leaves. Bring the mixture to a simmer.
Cover the Dutch oven and transfer it to a 325°F oven. Cook for 1 hour and 45 minutes, or until the beef is tender and the barley is cooked through. Remove the bay leaves before serving.