Offering prayers for rain (salaat al-istisqa’) is a Sunnah, as confirmed by saheeh hadeeths and the practice of the early generations of Islam. Ibn Qudaamah said: Prayer for rain is a confirmed Sunnah, proven by the practice of the Messenger of Allah (peace be upon him) and of his successors.

The prayer for rain consists of two rak'ahs. In the first rak'ah, and after the takbeer (glorification), Allah-u akbar, and the opening supplication,  takbeer is repeated seven more times, after that, al-Fatihah and another surah are recited. In the second rak[ah the same takbeer is repeated five times other than the takbeer for standing up from sujood before reciting al-Fatihah.