Rinse the lentils in cold water until the water runs clear.
Place them in a deep saucepan with at least three times their volume of water.
Bring to a boil, then reduce to a simmer for 25-30 minutes, or until completely soft. Skim off any foam that rises to the surface.
While the lentils cook, heat 1 tablespoon / 15ml (0.5 fl oz) of oil in a wide, lidded frying pan or Dutch oven over medium heat.
Add the fenugreek, coriander, and cumin seeds and stir-fry for one minute until fragrant. Immediately remove from the heat and grind the toasted spices into a coarse powder using a spice grinder or mortar and pestle.
Heat the remaining 3 tablespoons / 45ml (1.5 fl oz) of oil in the same pan over medium-high heat.
Once hot, add the mustard seeds.
When they begin to pop, add the curry leaves and sliced shallots.
Sauté for about 10 minutes, stirring occasionally, until the shallots are soft and golden brown.
Add the diced butternut squash and a splash of water (about 2 tablespoons / 30 ml / 1 fl oz).
Cover the pan and cook for 5 minutes to give the squash a head start.
Stir in the eggplant and another splash of water, cover, and cook for another 5 minutes.
Add the chopped tomatoes, the ground spice mix you prepared earlier, salt, sugar, tamarind paste, and ground red chile.
Stir everything together, cover the pan, and cook for 5 more minutes, until the tomatoes have broken down and the squash is tender when pierced with a fork.
Pour the cooked lentils and their water into the vegetable mixture.
Add the trimmed green beans and enough extra water to achieve a thick, soupy consistency.
Bring to a simmer and cook for a final 5 minutes, allowing the flavors to meld.
Taste the sambhar and adjust the seasoning as needed—you may want more salt for savoriness, sugar for balance, or tamarind for tang.
Divide into bowls and serve hot with rice and a dollop of yogurt.
Don't be afraid to customize the vegetables. Traditional additions like drumsticks, carrots, pumpkin, or okra work beautifully in this recipe.