Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:13094ʿAbdān b. Aḥmad > Hishām b. ʿAmmār > Ḥammād b. ʿAbd al-Raḥman > Idrīs al-Awdī > Saʿīd b. al-Musayyib

[Machine] In the name of Allah, and in the way of Allah, and according to the path of the Messenger of Allah. When he placed it on the clay, upon the tomb, he said: "O Allah! Protect her from the Shaytan and from the punishment of the grave." When they leveled the soil on it, he stood beside the grave and said: "O Allah! Make the earth spacious for her on her sides and elevate her soul and welcome her with acceptance from You." So I said, "Are these things that you mentioned from the Messenger of Allah ﷺ or are they your own words?" He said, "If that is the case, then I am capable of saying so, but I heard it from the Messenger of Allah ﷺ ."  

الطبراني:١٣٠٩٤حَدَّثَنَا عَبْدَانُ بْنُ أَحْمَدَ ثنا هِشَامُ بْنُ عَمَّارٍ ثنا حَمَّادُ بْنُ عَبْدِ الرَّحْمَنِ ثنا إِدْرِيسُ الْأَوْدِيُّ عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ قَالَ حَضَرْتُ ابْنَ عُمَرَ فِي جِنَازَةٍ فَلَمَّا وَضَعَهَا فِي اللَّحْدِ قَالَ

«بِسْمِ اللهِ وَفِي سَبِيلِ اللهِ وَعَلَى مِلَّةِ رَسُولِ اللهِ فَلَمَّا أَخَذَ فِي اللَّبِنِ عَلَى اللَّحْدِ» قَالَ «اللهُمَّ أَجِرْهَا مِنَ الشَّيْطَانِ وَمِنْ عَذَابِ الْقَبْرِ» فَلَمَّا سَوَّوُا الْكَثِيبَ عَلَيْهَا فَقَامَ إِلَى جَانِبِ الْقَبْرِ ثُمَّ قَالَ «اللهُمَّ جَافِ الْأَرْضَ عَنْ جَنْبَيْهَا وَصَعِّدْ رُوحَهَا وَلَقِّهَا مِنْكَ رِضْوَانًا» فَقُلْتُ أَشْيَاءُ سَمِعْتَهُ مِنْ رَسُولِ اللهِ ﷺ أَمْ أَشْيَاءُ قُلْتَ مِنْ رَأْيِكَ؟ قَالَ «إِنِّي إِذًا لَقَادِرٌ عَلَى الْقَوْلِ بَلْ سَمِعْتُهُ مِنْ رَسُولِ اللهِ ﷺ»  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:1553Hishām b. ʿAmmār > Ḥammād b. ʿAbd al-Raḥman al-Kalbī > Idrīs al-Awdī > Saʿīd b. al-Musayyab

“I was present with Ibn ‘Umar at a funeral. When the body was placed in the niche-grave) he said, ‘Bismillah wa fi sabil-illah wa ‘ala millati rasul-illah’ (In the Name of Allah, for the sake of Allah and according to the religion of the Messenger of Allah). When he started to place bricks in the niche-grave he said: ‘Allahumma ajirha min ash-shaitani wa min ‘adhabil-qabr. Allahumma Jafil-arda ‘an janbaiha, wa sa’id ruhaha, wa laqqiha minka ridwana (O Allah, protect him from Satan and from the torment of the grave; O Allah, keep the earth away from his two sides and take his soul up and grant him pleasure from Yourself).’ I said: ‘O Ibn ‘Umar, is this something that you heard from the Messenger of Allah ﷺ or is it your own words?’ He said: ‘I could have said something like that, but this is something that I heard from the Messenger of Allah ﷺ.’”  

ابن ماجة:١٥٥٣حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ حَدَّثَنَا حَمَّادُ بْنُ عَبْدِ الرَّحْمَنِ الْكَلْبِيُّ حَدَّثَنَا إِدْرِيسُ الأَوْدِيُّ عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ قَالَ حَضَرْتُ ابْنَ عُمَرَ فِي جِنَازَةٍ فَلَمَّا وَضَعَهَا فِي اللَّحْدِ قَالَ

بِسْمِ اللَّهِ وَفِي سَبِيلِ اللَّهِ وَعَلَى مِلَّةِ رَسُولِ اللَّهِ فَلَمَّا أُخِذَ فِي تَسْوِيَةِ اللَّبِنِ عَلَى اللَّحْدِ قَالَ اللَّهُمَّ أَجِرْهَا مِنَ الشَّيْطَانِ وَمِنْ عَذَابِ الْقَبْرِ اللَّهُمَّ جَافِ الأَرْضَ عَنْ جَنْبَيْهَا وَصَعِّدْ رُوحَهَا وَلَقِّهَا مِنْكَ رِضْوَانًا قُلْتُ يَا ابْنَ عُمَرَ أَشَىْءٌ سَمِعْتَهُ مِنْ رَسُولِ اللَّهِ ﷺ أَمْ قُلْتَهُ بِرَأْيِكَ قَالَ إِنِّي إِذًا لَقَادِرٌ عَلَى الْقَوْلِ بَلْ شَىْءٌ سَمِعْتُهُ مِنْ رَسُولِ اللَّهِ ﷺ