Sauté onion and garlic in oil in a large saucepan. Add spices and cook over low heat for 4 minutes. Add rice and lentils; stir to mix well. Pour in water. Bring to a boil. Turn heat to low. Cook for 45 to 50 minutes, or until rice and lentils are tender.