Rinse and soak both lentils in warm water for 20 minutes then discard the water.
In a pot take soaked lentils with 4 cups of water, and add onions, tomatoes and all spices. Bring it to boil then cover the pot. Cook for 20 minutes on medium heat until very soft.
Mash lentil for 5 minutes until it form a puree. Add water as required until desired consistency is reached. (You may blend it with an immersion blender.) Continue to cook on low heat.
For Tempering:
In another pan, fry sliced onions until slightly golden, then add all ingredients of tempering and fry for 1 minute.
Add the tempering to the lentil pot and cover immediately. Simmer for 5-10 minutes. Finally, garnish with chopped cilantro and chilies. Serve hot.