Hadithcore
Mishkat al-Masabih, 3231

She said that during the illness of which God’s Messenger died he was asking, “Where do I go tomorrow? Where do I go tomorrow?” That was on ‘A’isha’s day. His wives therefore permitted him to go where he wished, and he stayed in ‘A’isha’s house till he died there. Bukhari transmitted it.

وَعَنْهَا أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَسْأَلُ فِي مَرَضِهِ الَّذِي مَاتَ فِيهِ: «أَيْنَ أَنَا غَدًا؟» يُرِيدُ يَوْمَ عَائِشَةَ فَأَذِنَ لَهُ أَزْوَاجُهُ يَكُونُ حَيْثُ شَاءَ فَكَانَ فِي بَيْتِ عَائِشَةَ حَتَّى مَاتَ عِنْدَهَا. رَوَاهُ الْبُخَارِيُّ

References1 variant
In-Book Reference
Book 13, Hadith 149