Hadithcore
Mishkat al-Masabih, 3078, 3079

Anas reported God’s Messenger as saying, “If anyone deprives an heir of his inheritance, God will deprive him of his inheritance in paradise on the day of resurrection.” Ibn Majah transmitted it, and Baihaqi transmitted it in <i>Shu'ab al-lman</i> on the authority of Abu Huraira.

وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ قَطَعَ مِيرَاثَ وَارِثِهِ قَطَعَ اللَّهُ مِيرَاثَهُ مِنَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ» . رَوَاهُ ابْنُ مَاجَهْ وَرَوَاهُ الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَانِ عَنْ أَبِي هُرَيْرَة رَضِي الله عَنهُ

References1 variant
In-Book Reference
Book 12, Hadith 37