Abdullah bin Abbas reported,

When the Prophet ﷺ was driven out of Mecca, Abu Bakr said, "They have driven out their Prophet. Indeed, to Allah we belong and to Him we shall return. They will surely perish."Then the verse was revealed, "Permission has been given to those who are being fought, because they were wronged. And indeed, Allah is competent to give them victory" [Hajj 22:39].He said, "By this I knew there would be fighting."Ibn Abbas said, "This is the first verse revealed concerning fighting."

Ahmad 1865

Sahih

حدثنا إسحاق حدثنا سفيان عن الأعمش عن مسلم البطين عن سعيد بن جبير

عن ابن عباس قال

لما أخرج النبي ﷺ من مكة قال أبو بكر أخرجوا نبيهم إنا لله وإنا إليه راجعون ليهلكن فنزلت {أذن للذين يقاتلون بأنهم ظلموا وإن الله على نصرهم لقدير} قال فعرف أنه سيكون قتال قال ابن عباس هي أول آية نزلت في القتال

أحمد 1865صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 1865
Ahmad 1865