Aal-i-Imraan • EN-AL-JALALAYN
﴿ وَلَقَدْ نَصَرَكُمُ ٱللَّهُ بِبَدْرٍۢ وَأَنتُمْ أَذِلَّةٌۭ ۖ فَٱتَّقُوا۟ ٱللَّهَ لَعَلَّكُمْ تَشْكُرُونَ ﴾
“for, indeed, God did succour you at Badr, when you were utterly weak. Remain, then, conscious of God, so that you might have cause to be grateful.”
When they were defeated the following was revealed as a way of reminding them of God’s favour God already gave you victory at Badr a location between Mecca and Medina when you were contemptible few in number and weapons. So fear God in order that you might be thankful for His blessings.