Ayesha reported,

When the Messenger of Allah ﷺ passed away, the Companions disagreed about where to bury him. Abu Bakr said, "I heard something from the Messenger of Allah ﷺ that I have never forgotten. He said, 'Allah does not take the soul of a prophet except in the very place where He wishes him to be buried.' So bury him in the spot where his bed lies."

Tirmidhi 1018

Sahih

حدثنا أبو كريب حدثنا أبو معاوية عن عبد الرحمن بن أبي بكر عن ابن أبي مليكة

عن عائشة قالت

لما قبض رسول الله ﷺ اختلفوا في دفنه فقال أبو بكر سمعت من رسول الله ﷺ شيئا ما نسيته قال ما قبض الله نبيا إلا في الموضع الذي يحب أن يدفن فيه ادفنوه في موضع فراشه

الترمذي 1018صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Funerals
Chapter
Where the prophets are buried
Numbering
Darussalam 1018
Tirmidhi 1018