Abdullah bin Abbas reported,

When the Prophet ﷺ was driven out of Mecca, Abu Bakr said, "They have driven out their Prophet. To Allah we belong, and to Him we shall return. They are surely doomed."Then the verse was revealed, "Permission to fight is given to those who are being fought, because they have been wronged, and indeed Allah is fully capable of granting them victory" [Hajj 22:39].Abu Bakr said, "Then I knew that there would be fighting."Ibn Abbas said, "This was the first verse revealed concerning fighting."

Nasai 3087

Sahih

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

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

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

النسائي 3087صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Jihad
Chapter
Obligation of jihad
Numbering
Darussalam 3087
Nasai 3087