Hadith
حَدَّثَنَا عَبْدُ الرَّزَّاقِ، قَالَ أَخْبَرَنِي ابْنُ جُرَيْجٍ، قَالَ أَخْبَرَنِي أَبِي أَنَّ أَصْحَابَ النَّبِيِّ، صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَمْ يَدْرُوا أَيْنَ يَقْبُرُونَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ حَتَّى قَالَ أَبُو بَكْرٍ رَضِيَ اللَّهُ عَنْهُ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ لَنْ يُقْبَرَ نَبِيٌّ إِلَّا حَيْثُ يَمُوتُ فَأَخَّرُوا فِرَاشَهُ وَحَفَرُوا لَهُ تَحْتَ فِرَاشِهِ.
My father told me that the Companions of the Prophet (ﷺ) did not know where to bury the Prophet (ﷺ) until Abu Bakr said: I heard the Messenger of Allah (ﷺ) say: `A Prophet is not to be buried except where he died.” So they removed his bed and dug a grave for him beneath
Musnad Ahmad 36190·Also available on sunnah.com·