Jami` at-Tirmidhi 3172
جامع الترمذي#3172SahihNarrated Sa'eed bin Jubair:"When the Prophet (ﷺ) was expelled from Makkah a man said: 'They have driven out their Prophet' so (the following) was revealed: "Permission (to fight) is given to those who are fought against, because they have been wronged; and surely, Allah is able to give them victory. Those who have been expelled from their homes unjustly (22:39)." [Those who were expelled were the Prophet (ﷺ) and his Companions
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Zubair Ali ZaiSahih
In-book reference: 47:224