Surah 3, Verse 152

The promise made to you by God was verified when you destroyed (the foe) by His leave, until you were unmanned and disputed the order, and thus disobeyed (the Apostle) even after He had brought you in sight of (victory) you longed for. Some of you desired this world, and some of you the next. Then He put you to flight before (them) in order to try you. But (now) He has forgiven you, for surely God is kind to the faithful.

— Quran 3:152

Quote from Quran 3:152