Heat oil in a deep pan. Fry cumin seeds and garlic. Throw in chopped onion and green chillies.
Put lentils along with two cups of water, and ground turmeric. Allow it to boil. Then reduce the heat, and cook, covered for around 10 minutes. When cooked, lentils will turn yellow and mushy. Now you can add chopped spinach and enough salt. And add more water if required. Cook, covered for another 10 minutes.