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.
ibnmajah:1520Muḥammad b. al-Ṣabbāḥ > Yaḥyá b. al-Yamān > Minhāl b. Khalīfah > ʿAṭāʾ > Ibn ʿAbbās

It was narrated from Ibn ‘Abbas that the Messenger of Allah ﷺ placed a man in his grave at night, and he lit a lamp in his grave.  

ابن ماجة:١٥٢٠حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ أَنْبَأَنَا يَحْيَى بْنُ الْيَمَانِ عَنْ مِنْهَالِ بْنِ خَلِيفَةَ عَنْ عَطَاءٍ عَنِ ابْنِ عَبَّاسٍ

أَنَّ رَسُولَ اللَّهِ ﷺ أَدْخَلَ رَجُلاً قَبْرَهُ لَيْلاً وَأَسْرَجَ فِي قَبْرِهِ