The companions of the Prophet ﷺ did not know where to bury the Prophet ﷺ until Abu Bakr said, "I heard the Messenger of Allah ﷺ say, 'No prophet is buried except where he dies.'" So they moved his bed aside and dug his grave beneath where his bed had been.
حدثنا عبد الرزاق قال أخبرني
أن أصحاب النبي ﷺ لم يدروا أين يقبرون النبي ﷺ حتى قال أبو بكر رضي الله عنه سمعت رسول الله ﷺ يقول لن يقبر نبي إلا حيث يموت فأخروا فراشه وحفروا له تحت فراشه
No references are available.
Its isnad is daif because of a break in the chain. Ibn Jurayj is Abdul-Malik bin Abdul-Aziz bin Jurayj, and Abu Abdul-Aziz lived at a later time and did not witness this story. There is also disagreement over whether he heard from Ayesha, so it is even more likely that he did not hear from Abu Bakr.