HAKIM 2968:
from Ibn ʿAbbās —
“When the Prophet was expelled from Makkah, Abu Bakr said to him: ‘They have driven out their Prophet, verily to Allah we belong and to Him we return. They are surely doomed.’ Then it was revealed: ‘Permission to fight (against disbelievers) is given to those (believers) who are fought against, because they have been wronged; and surely, Allah is able to give them (believers) victory.’ Then I knew that there would be fighting.” Ibn Abbas said: “This is the first Verse that was revealed concerning fighting.” (Using translation from Nasāʾī 3085)
الحاكم ٢٩٦٨:
عن ابن عباس —
لَمَّا أُخْرِجَ النَّبِيُّ ﷺ مِنْ مَكَّةَ قَالَ أَبُو بَكْرٍ أَخْرَجُوا نَبِيَّهَمْ إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ لَيَهْلِكُنَّ فَأَنْزَلَ اللَّهُ تَعَالَى {أُذِنَ لِلَّذِينَ يُقَاتَلُونَ بِأَنَّهُمْ ظُلِمُوا وَإِنَّ اللَّهَ عَلَى نَصْرِهِمْ لَقَدِيرٌ} [الحج 39] قَالَ «وَهِيَ أَوَّلُ آيَةٍ نَزَلَتْ فِي الْقِتَالِ»
hadithunlocked.com