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.