It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) was in Makkah, then he was commanded to migrate, and Allah Almighty revealed this command to him: {وَقُلْرَبِّاَدْخِلْنِیْمُدْخَلَصِدْقٍوَاَخْرِجْنِیْمُخْرَجَصِدْقٍوَاجْعَللِّیْمِنلَّدُنْکَسُلْطَانًانَصِیْرًا} … And say: O my Lord! Cause me to enter a truthful entering and cause me to exit a truthful exiting, and grant me from Yourself a supporting authority.
Hadith Referenceالفتح الربانی / تفسير من سورة إبراهيم إلى سورة الشعراء / 8657
Benefits: … Regarding this verse, there are the following three opinions: (1) This verse was revealed on the occasion of migration (hijrah), when the issue of entering Madinah and leaving Makkah was before the Prophet sallallahu alayhi wa sallam. (2) In this, the supplication is being made to be granted death with truthfulness and to be raised on the Day of Resurrection with truthfulness. (3) The supplication is being made to be entered truthfully into the grave and, on the Day of Resurrection, when raised from the grave, to be brought forth with truthfulness. Imam Shawkani says that since this is a supplication, all these matters are included in its generality.