Heat the olive oil in a large Dutch oven over medium-high heat. Add the beef cubes and brown them on all sides, then remove the meat to a plate.
Lower the heat to medium and add the onions, mushrooms, and carrots to the same pot. Cook until the onions turn translucent and the mushrooms release their liquid.
Stir in the garlic and cook for one minute. Sprinkle the flour over the vegetables and stir for another minute to coat everything evenly.
Pour in the red wine and scrape the bottom of the pot to loosen any browned bits. Let the wine simmer for two minutes.
Return the beef to the pot and add the beef broth, bay leaves, and thyme. Season with salt and pepper.
Bring the mixture to a boil, then reduce to a low simmer. Cover and cook for about two hours, stirring occasionally, until the beef is tender.
Remove the bay leaves before serving.