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.
bayhaqi:6599[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Muḥammad b. Yaʿqūb > Ismāʿīl b. Qutaybah > Abū Bakr b. Abū Shaybah > Abū Khālid al-Aḥmar [Chain 2] Abū ʿAbdullāh > Muḥammad b. Ṣāliḥ b. Hāniʾ > Abū Bakr b. Rajāʾ b. al-Sindī > ʿUthmān b. Abū Shaybah > Abū Khālid al-Aḥmar > Yazīd b. Kaysān > Abū Ḥāzim > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said, "Teach your deceased ones there is no god but Allah."  

البيهقي:٦٥٩٩وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا مُحَمَّدُ بْنُ يَعْقُوبَ ثنا إِسْمَاعِيلُ بْنُ قُتَيْبَةَ ثنا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ثنا أَبُو خَالِدٍ الْأَحْمَرُ ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ حَدَّثَنِي مُحَمَّدُ بْنُ صَالِحِ بْنِ هَانِئٍ ثنا أَبُو بَكْرِ بْنُ رَجَاءِ بْنِ السِّنْدِيِّ ثنا عُثْمَانُ بْنُ أَبِي شَيْبَةَ ثنا أَبُو خَالِدٍ الْأَحْمَرُ ثنا يَزِيدُ بْنُ كَيْسَانَ عَنْ أَبِي حَازِمٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ لَقِّنُوا مَوْتَاكُمْ لَا إِلَهَ إِلَّا اللهُ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي بَكْرٍ وَعُثْمَانَ ابْنَيْ أَبِي شَيْبَةَ