وَأَطِيعُوا۟ ٱللَّهَ وَرَسُولَهُۥ وَلَا تَنَـٰزَعُوا۟ فَتَفْشَلُوا۟ وَتَذْهَبَ رِيحُكُمْ ۖ وَٱصْبِرُوٓا۟ ۚ إِنَّ ٱللَّهَ مَعَ ٱلصَّـٰبِرِينَ
“O believers! When you face an enemy, stand firm and remember Allah often so you may triumph. Obey Allah and His Messenger, and do not dispute with one another, or you would be discouraged and weakened. Persevere! Surely, Allah is with those who persevere.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.