"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).'"
كَانَ النَّبِيُّ ﷺ بِمَكَّةَ ثُمَّ أُمِرَ بِالْهِجْرَةِ فَنَزَلَتْ عَلَيْهِ ( قُلْ رَبِّ أَدْخِلْنِي مُدْخَلَ صِدْقٍ وَأَخْرِجْنِي مُخْرَجَ صِدْقٍ وَاجْعَلْ لِي مِنْ لَدُنْكَ سُلْطَانًا نَصِيرًا )