وَٱلَّذِينَ ءَامَنُوا۟ وَهَاجَرُوا۟ وَجَـٰهَدُوا۟ فِى سَبِيلِ ٱللَّهِ وَٱلَّذِينَ ءَاوَوا۟ وَّنَصَرُوٓا۟ أُو۟لَـٰٓئِكَ هُمُ ٱلْمُؤْمِنُونَ حَقًّۭا ۚ لَّهُم مَّغْفِرَةٌۭ وَرِزْقٌۭ كَرِيمٌۭ
“Those who believed, Migrated, and struggled in the Cause of Allah, and those who gave [them] shelter and help, they are the true believers. They will have forgiveness and an honorable provision. And those who later believed, Migrated, and struggled alongside you, they are also with you. But only blood relatives are now entitled to inherit from one another, as ordained by Allah. Surely, Allah has [full] knowledge of everything.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.