Start by soaking the dried beans overnight in plenty of water. This step helps them cook evenly and reduces cooking time. Once soaked, drain and rinse them thoroughly before use.
In your oven-safe pot, combine the beans, chopped onion, smashed garlic, herbs, and broth. Add olive oil, salt, and pepper, then give everything a gentle stir. This mixture forms the flavorful base that the beans will absorb as they bake.
Cover the pot and bake in a preheated oven at 350°F (175°C). Let it cook slowly until the beans are tender and the broth becomes rich and aromatic. Stir occasionally and add more broth if needed to keep it brothy.
Once the beans are soft, remove the pot from the oven and stir in lemon juice. Taste and adjust seasoning with more salt, pepper, or chili flakes. The final dish should be rich, comforting, and slightly tangy.