´Narrated Ibn 'Abbas:` "The Prophet (ﷺ) was in Makkah, then Hijrah was ordered, so the following was revealed to him: Say: 'My Lord! Let my entry be good, and likewise my exit be good. And grant me from You a helping authority (17:80).'"
Hadith Referenceسنن ترمذي / كتاب تفسير القرآن عن رسول الله صلى الله عليه وسلم / 3139
Explanation: 1: Pray, O my Lord! Cause me to enter a good entrance and cause me to exit a good exit, and grant me from Yourself a strong supporting authority. (: Bani Isra'il: 80)
Note:
(In the chain of narration, Qaboos is weak in hadith.)
Source: Sunan al-Tirmidhi – Majlis ‘Ilmi Dar al-Da‘wah, New Delhi Edition, Page: 3139