01 - Preheat oven to 350°F. Lightly grease a 9x13-inch baking dish.
02 - Bring a large pot of salted water to a boil. Add green beans and cook 4–5 minutes until just tender. Drain and rinse under cold water.
03 - In a large skillet over medium heat, melt 1 tablespoon butter. Sauté onion until softened, about 3 minutes. Add garlic and cook 1 minute more.
04 - In a large bowl, combine green beans, sautéed onions and garlic, cream of mushroom soup, milk, cheddar cheese, sour cream, salt, pepper, and thyme. Mix until evenly coated.
05 - Spread the mixture evenly in the prepared baking dish.
06 - In a small bowl, combine crushed Ritz crackers with remaining melted butter. Sprinkle cracker mixture evenly over the casserole.
07 - Bake for 30–35 minutes, until bubbly and the topping is golden brown.
08 - Let stand 5 minutes before serving.