The Prophet (peace and blessings of Allah be upon him) and his Companions (may Allah be pleased with them) explained how to pray salat al-Janazah (funeral prayer). It is done as follows:
You say the first Takbir (“Allahu akbar”), then you seek refuge with Allah from the accursed Shaytan. Then you say Bismillah ir-Rahman ir-Rahim and recite al-Fatihah .
Then you say Takbir and send blessings upon the Prophet (peace and blessings of Allah be upon him) as one does at the end of the prayer.
Then you say a third Takbir and make du’a for the deceased.
Then you say a fourth Takbir and pause for a little while, then you say one Taslim to the right, saying “Assalamu ‘alaykum wa rahmatullah.”
And Allah knows best……