The Command to emigrate
Imam Ahmad recorded that Ibn Abbas said;
The Prophet was in Makkah, then he was commanded to emigrate, and Allah revealed the words;
وَقُل رَّبِّ أَدْخِلْنِي مُدْخَلَ صِدْقٍ وَأَخْرِجْنِي مُخْرَجَ صِدْقٍ وَاجْعَل لِّي مِن لَّدُنكَ سُلْطَانًا نَّصِيرًا
And say;"My Lord! Let my entry be good, and (likewise) my exit be good. And grant me from You a helping authority."
At-Tirmidhi said, "This is Hasan Sahih."
Al-Hasan Al-Basri commented on this Ayah,
"When the disbelievers of Makkah conspired to kill the Messenger of Allah , or expel him or imprison him, Allah wanted him to fight the people of Makkah, and commanded him to go to Al-Madinah. What Allah said was;
وَقُل رَّبِّ أَدْخِلْنِي مُدْخَلَ صِدْقٍ وَأَخْرِجْنِي مُخْرَجَ صِدْقٍ
And say;"My Lord! Let my entry be good, and (likewise) my exit be good..."
وَقُل رَّبِّ أَدْخِلْنِي مُدْخَلَ صِدْقٍ
And say;"My Lord! Let my entry be good..."
means, my entry to Al-Madinah.
وَأَخْرِجْنِي مُخْرَجَ صِدْقٍ
and (likewise) my exit be good,
means, my exit from Makkah.
This was also the view of Abdur-Rahman bin Zayd bin Aslam.
وَاجْعَل لِّي مِن لَّدُنكَ سُلْطَانًا نَّصِيرًا
And grant me from You a helping authority.
Al-Hasan Al-Basri explained this Ayah;
"His Lord promised to take away the kingdom and glory of Persia and give it to him, and the kingdom and glory of Byzantium and give it to him."
Qatadah said,
"The Prophet of Allah knew that that he could not achieve this without authority or power, so he asked for authority to help him support the Book of Allah, the Laws of Allah, the obligations of Allah and to establish the religion of Allah. Authority is a mercy from Allah which He places among His servants, otherwise some of them would attack others, and the strong would consume the weak."
Alongside the truth, he also needed power and authority in order to suppress those who opposed and resisted him, hence Allah said;
لَقَدْ أَرْسَلْنَا رُسُلَنَا بِالْبَيِّنَـتِ وَأَنزَلْنَا مَعَهُمُ الْكِتَـبَ وَالْمِيزَانَ لِيَقُومَ النَّاسُ بِالْقِسْطِ وَأَنزْلْنَا الْحَدِيدَ
Indeed We have sent Our Messengers with clear proofs, and revealed with them the Scripture and the Mizan that mankind may keep up justice. And We brought forth iron... (57;25)
A Threat to the Disbelievers of the Quraysh