-4- It is reported from Abu Hurairah that the Prophet, peace be upon him, offered a funeral prayer and said: Allahummaghfir lihayatina wa mayatina wa saghirina wa kahirina wa zhakirina wa unthana. Allahumma man ahyatahu minna fa-ahyahu 'alal Islam wa man tawafthu minna fa-tawafthu 'ala iman. Allahumma la tahrimna ajrahu wa la tudalana ba'dahu. "O Allah! Forgive our living, our dead, our young, our old, our males and our females, those of us who are present, and those who are absent. O Allah! Whomsoever among us You keep to live, make him to live in Islam, and whomsoever You cause to die, let him die in faith. O Allah! Do not deprive us of our reward for (supplicating for) him, and cause us not to go astray after him." This is narrated by Ahmad and the other Sunan books. (Authentic canonical collections of hadith)
If the deceased is a child, then it is desirable to pray: Allahumma 'ij'alhu lana salafan wa zhukhran. "O Allah! Make him our forerunner and make him (a means of) reward for us and a treasure." Bukhari and Al-Baihaqi report it from Al-Hasan. Nawawi said: "If the deceased is a child, a boy or a girl, one should say what is reported in the hadith, namely, "O Allah! Forgive our living, our dead, . . . ," and add the words: Allahumma 'ij'alhu faratan li-abwaihi wa salafan wa zhukhran wa izatan wa i'tibaran wa shafi'an wa thaqil bihi mawazlnahumma wa afrlghas sabra 'ala qulubihima wa la taftinhumma ba'dahu wa la tuharim-humma ajrahu. "O Allah, make him (or her) for hisparents a forerunner, a treasure and an admonition, an honor, an intercessor, and cause him (or her) to make their scales of good deeds heavier (on the Day of Judgement). O Allah! Grant them patience, and O Allah! Do not put them to trial after him (or her) nor deprive them of his (or her) reward."
Volume 4, Page 43: Timing of Supplications
Ash-Shawkani said: There are no fixed times for these prayers. One may use any of these after all the takbirs, or after the first or second or third takbir, or divide it between each two takbirs, or say any of these prayers in between each two takbirs in the light of the practice of the Prophet, peace be upon him. It is also said that supplications should be done in the words given in the above reported hadith for both male or female dead persons.
Volume 4, Page 43a: Supplications after the fourth takbir
It is preferred to supplicate for the deceased after the fourth takbir, even though the supplicant rnay have done so after the third takbir. This is based on a narration by Ahmad on the authority of ' Abdullah ibn Abi Awfa who said that when his daughter died, at his funeral prayer for her he made four takbirs. After the fourth takbir, he stood supplicating for as much as he did in between the other takbirs. Then he said: "The Prophet, peace be upon him, used to do the same in a funeral prayer."
Ash-Shafi'i said: "After the fourth takbir one may say, Allahumma la tuharimna ajrahu wa la taftinna ba'dahu. 'O Allah! Do not deprive us of reward for (supplicating for) him/her, nor put us to trial after him (or her)'."
Ibn Abu Hurairah said: "After the fourth takbir the elders used to say: Allahumma Rabbana atina fi ad-Dunya hasanatan wafi al-Akhirati hasanatan wa qina 'azhab an-Nar. 'O Allah! Grant us good in this life and good in the life to come, and save us from the torment of Hell Fire."