It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) entered Makkah he would make this supplication: 'Allahumma la taj'al manayana biha hatta nakhruja minha' (O Allah, do not decree our deaths in this place (Makkah) until we leave it).
Musaddad recorded this hadith as mursal through the route of Abdullah bin Sa'id from his father (without the link of Sayyiduna Ibn Umar (may Allah be pleased with them both)), and its narrators are thiqat (trustworthy), while Muhammad bin Yahya bin Abi Umar, Abu Bakr bin Abi Shaybah and Ahmad bin Hanbal recorded it as marfu'. Imam al-Tabarani said: "In my view its meaning is that the Prophet (peace and blessings be upon him) disliked that a person should die in the very place from which he had emigrated, and the evidence for this is his (peace and blessings be upon him) saying when he visited Sayyiduna Sa'd (may Allah be pleased with him) in his illness in Makkah: 'Allahumma atmim li-Sa'din hijratahu' (O Allah, complete the emigration of Sa'd)."