Preheat your oven to 300°F / 150°C. Lightly grease a large casserole or baking dish.
In the prepared baking dish, combine the cooked barley, drained pinto beans, diced onion, crushed tomatoes, water, brown sugar, barbecue sauce, molasses, mustard powder, garlic powder, and salt.
Stir everything together until well combined.
Cover the dish tightly with a lid or aluminum foil.
Bake for 2 hours, stirring the mixture once at the halfway point to prevent sticking.
After 2 hours, carefully remove the cover. Return the dish to the oven and bake for an additional 15 minutes, or until the sauce has thickened to your liking and is bubbling around the edges.
Let it rest for a few minutes before serving.