946/1 - ‘Uthmān ibn ‘Affān (may Allah be pleased with him) reported: When the Prophet (may Allah’s peace and blessings be upon him) finished the burial of a dead person, he would stand over him and say: “Ask forgiveness for your brother and implore Allah to make him firm, for he is being questioned now.” [Narrated by Abu Dāwūd]
1) The Sunnah in burial is to ask Allah Almighty to forgive the dead person and make him firm during the questioning by the two angels.
2) The trial of the grave is quite grave, and that is the questioning by the two angels. So, a dead person needs supplication by his fellow Muslims for him to stay firm.
His words “for he is being questioned now” give a certain piece of information by the Prophet (may Allah’s peace and blessings be upon him) at the time, as he knew, through revelation from his Lord, that the man was being questioned after the Prophet had finished the burial. In our time, however, the preacher should not say this phrase “for he is being questioned now”, as he does not know whether he is actually being questioned now or not. He should only say: “Ask forgiveness for your brother and implore Allah to make him firm.”
947/2 - ‘Amr ibn al-‘Ās (may Allah be pleased with him) said: “When you bury me, stand around my grave for the length of time within which a camel is slaughtered and its meat is distributed, so that I may find comfort in your presence and ascertain what answer I can give to the messengers of my Lord.” [Narrated by Muslim] It has been previously cited in its entirety.
Al-Shāfi‘i (may Allah have mercy upon him) said: “It is recommended that they recite some verses of the Qur’an at his grave. And if they recite the whole Qur’an there, that will be good.”
This reported statement from the Companion ‘Amr ibn al-‘As, in which he asked his companions, when they bury him, to stay around his grave so that he could have a sense of comfort from their supplication as he prepares to answer the questioning by the two angels; this was only his personal opinion. According to the Prophet’s guidance, however, which is the best guidance ever, we should not stand or sit around the grave after burial. He did not command his Companions to do so. If it were good, he would do it or instruct us to do it. Indeed, he left no good but he guided the Ummah to it.
As for the statement reported from Al-Shāfi‘i (may Allah have mercy upon him), it is wrong and inauthentic. Imām Al-Shāfi‘i is authentically reported to have said that reciting the Qur’an, partially or wholly, at the grave or over the dead is not recommended. Ibn Kathīr reported his opinion on the verse that says: {And that there is not for man except that [good] for which he strives.} He said: “From this noble verse, Al-Shāfi‘i (may Allah have mercy upon him) and his followers deduced that dedication of the reward of the Qur’an recitation does not reach the dead, for this is not part of their deeds or striving. Therefore, the Prophet (may Allah’s peace and blessings be upon him) did not exhort or urge his Ummah to do this, nor did he guide them to this by a statement or a gesture. Moreover, this is not reported to have been done by any of the Companions (may Allah be pleased with them). If it were good, they would have done it before us. In the acts of worship, we should limit ourselves to the texts and not refer to different types of analogical reasoning or opinions. With regard to supplication and charity, there is consensus that they reach the dead, and it is stated in the Shariah.”
The author Shaykh Al-Nawawi (may Allah have mercy upon him) said in Al-Majmū‘ Sharh al-Muhadhdhab fi al-Fiqh al-Shāfi‘i 294/5: “The scholars of this school of Fiqh agreed that it is recommended to recite some verses of the Qur’an next to the dead person’s grave, and it is even better to recite the whole Qur’an there.”
So, this view belongs to the scholars of the Shāfi‘i school of Fiqh, not to Imām Al-Shāfi‘i himself. Accordingly, this view is mistakenly attributed to the Imām by the author, may Allah have mercy upon him and forgive him!