وعن عمرو بن العاص - رضي الله عنه - قَالَ: إِذَا دَفَنْتُمُونِي، فَأقِيمُوا حَوْلَ قَبْرِي قَدْرَ مَا تُنْحَرُ جَزُورٌ، وَيُقَسَّمُ لَحمُهَا حَتَّى أَسْتَأنِسَ بِكُمْ، وَأعْلَمَ مَاذَا أُرَاجِعُ بِهِ رُسُلَ رَبِّي. رواه مسلم. وَقَدْ سبق بطوله.
قَالَ الشَّافِعِيُّ رحمه الله: وَيُسْتَحَبُّ أَنْ يُقْرَأَ عِنْدَهُ شَيْءٌ مِنَ القُرآنِ، وَإنْ خَتَمُوا القُرآنَ عِنْدَهُ كَانَ حَسَنًا.
It is narrated from Sayyiduna Amr bin al-As (may Allah be pleased with him) that he said: When you have buried me, remain around my grave for as long as it takes to slaughter a camel and distribute its meat, so that I may find comfort in you and know what answer I give to the messengers (angels) of my Lord.
(Narrated by Muslim, and it (the hadith) has already passed in full)
Imam al-Shafi'i (may Allah have mercy on him) said: It is recommended that something of the Qur'an be recited near it (the grave), and if they complete the whole Qur'an near it, that is good.
Brief Explanation
This hadith has already passed at number 710.
This statement is (in fact) not that of Imam al-Shafi'i (may Allah have mercy on him), but of his companions (the Shafi'i jurists). (al-Majmu' 5/185)