"When the Messenger of Allah died, they disagreed over where to bury him. So Abu Bakr said: 'I heard the Messenger of Allah saying something which I have not forgotten, he said: "Allah does not take (the life of ) a Prophet except at the location in which He wants him to be buried.'" So they buried him at the spot of his bed."
لَمَّا قُبِضَ رَسُولُ اللَّهِ ﷺ اخْتَلَفُوا فِي دَفْنِهِ فَقَالَ أَبُو بَكْرٍ سَمِعْتُ مِنْ رَسُولِ اللَّهِ ﷺ شَيْئًا مَا نَسِيتُهُ قَالَ مَا قَبَضَ اللَّهُ نَبِيًّا إِلاَّ فِي الْمَوْضِعِ الَّذِي يُحِبُّ أَنْ يُدْفَنَ فِيهِ ادْفِنُوهُ فِي مَوْضِعِ فِرَاشِهِ