Whenever the Messenger of Allah ﷺ entered Mecca, he would say, "O Allah, do not let our deaths occur here until You have taken us out of it."
كان رسول الله ﷺ إذا دخل مكة قال: اللهم لا تجعل منايانا بها حتى تخرجنا منها.
Ahmad (4778, 6076), Bazzar (Kashf Astar 1751), and Bayhaqi (9/19) all narrated it through various routes from Abdullah bin Saeed bin Abu Hind, from his father, from Ibn Umar, who mentioned it. Its isnad is sahih.