Quran 3:122 — The Amramites (Ali-'Imran)
Two groups among you almost failed, but GOD was their Lord. In GOD the believers shall trust.
[3:121] Recall that you (Muhammad) were among your people when you set out to assign to the believers their positions for battle. GOD is Hearer, Omniscient.
[3:123] GOD has granted you victory at Badr, despite your weakness. Therefore, you shall observe GOD, to show your appreciation.