Funeral prayer
The funeral prayer is a supplication for a deceased Muslim and a right owed by the Muslim community; it is a communal obligation. Abu Hurayrah reported that whoever attends a funeral and prays over the deceased receives one qirat of reward, and whoever stays until burial receives two. The worshipper must be in a state of purity, cover the awrah and face the qiblah; one who is able stands and intends the funeral prayer.
The well-known form is four takbirs while standing, without bowing or prostrating, followed by salam. The Prophet ﷺ arranged people in rows and said four takbirs over the Negus. One Shafii form for teaching is to recite al-Fatihah after the first, invoke blessings upon the Prophet ﷺ after the second, supplicate for the deceased after the third, then say the fourth takbir and salam. Supplication at that point is permitted as detailed by jurists.
Ibn Abbas is authentically reported to have recited al-Fatihah in the funeral prayer. Hanafis hold that it begins with praise, while Malikis give attention to supplication after the takbirs. Neither reciting al-Fatihah nor a formula of supplication after the fourth takbir should therefore be described as a pillar agreed upon by all. Awf ibn Malik heard the Prophet ﷺ supplicate for the deceased: “O God, forgive him, have mercy on him, grant him well-being and pardon him.”
Al-Nawawi, Al-Majmu’, Book of Funerals, Prayers for the Dead. Ibn Rushd, Bidayat al-Mujtahid, Book of Funerals, the description of prayer at a funeral.