Hadithcore
Mishkat al-Masabih, 1701, 1702

Ibn ‘Abbas reported God’s messenger as saying, “The niche in the side of the grave is for us and the excavation in the middle is for others.” Tirmidhi, Abu Dawud, Nasa’i and Ibn Majah transmitted it, and Ahmad transmitted it from Jarir b. ‘Abdallah.

وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «اللَّحْدُ لَنَا وَالشَّقُّ لغيرنا» رَوَاهُ التِّرْمِذِيّ وَأَبُو دَاوُد وَابْن مَاجَه وَرَوَاهُ أَحْمَدُ عَنْ جَرِيرِ بْنِ عَبْدِ اللَّهِ

References1 variant
In-Book Reference
Book 5, Hadith 174