Rinse rice under cold running water. Add rice to a pot of boiling water. When rice is cooked, drain excess water. Set aside.
Add spinach to a food processor. Process to a smooth paste. Add a little water if needed.
Heat oil in a large frying pan over medium-high heat.
Add cumin seeds and cardamom pods. Sauté for 30 seconds.
Add onions. Sauté, stirring occasionally, for 2-3 minutes or until browned.
Add garlic, ginger and green chilies. Sauté, stirring occasionally, for 1 minute or until fragrant.
Add ground turmeric and garam masala. Sauté, stirring, for 1 minute.
Add spinach paste, stock cube (if using) and lemon juice. Stir to combine. Season with salt. Cook for about 3-4 minutes. The spinach mixture needs to be dry.
Add cooked rice. Stir to combine. Heat through.
Garnish with coriander (cilantro) leaves and cashew nuts if you like.