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.
abudawud:3960And Hb b. Baqiyyah > Khālid b. ʿAbdullāh > al-Ṭaḥḥān > Khālid > Abū Qilābah > Abū Zayd > a man from al-Anṣār Bimaʿnāh

A man of the Ansar ... The Prophet ﷺ said: Had I been present before his burial, he would not have been buried in a Muslim cemetry.  

أبو داود:٣٩٦٠حَدَّثَنَا وَهْبُ بْنُ بَقِيَّةَ حَدَّثَنَا خَالِدُ بْنُ عَبْدِ اللَّهِ هُوَ الطَّحَّانُ عَنْ خَالِدٍ عَنْ أَبِي قِلاَبَةَ عَنْ أَبِي زَيْدٍ أَنَّ رَجُلاً مِنَ الأَنْصَارِ بِمَعْنَاهُ

وَقَالَ يَعْنِي النَّبِيَّ ﷺ لَوْ شَهِدْتُهُ قَبْلَ أَنْ يُدْفَنَ لَمْ يُدْفَنْ فِي مَقَابِرِ الْمُسْلِمِينَ