Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said that when the Messenger of Allah (peace and blessings be upon him) entered Makkah, he would say: "Allahumma la taj'al manayana fiha hatta tukhrijana minha (O Allah, do not let our deaths be in it until You take us out of it)." Waki' corroborated it from Abdullah bin Sa'id.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17789