Dr. Mustafa Khattab, the Clear Quran - 3:152

Translation for 3:152

Indeed, Allah fulfilled His promise to you when you ˹initially˺ swept them away by His Will, then your courage weakened and you disputed about the command and disobeyed,1 after Allah had brought victory within your reach. Some of you were after worldly gain while others desired a heavenly reward. He denied you victory over them as a test, yet He has pardoned you. And Allah is Gracious to the believers.

Foot notes

76525

 The archers disputed whether to keep their positions after the initial victory. Eventually, most of them decided to go in pursuit of the spoils of war, disobeying the Prophet’s direct orders not to leave their position no matter what happened. Defeat became inevitable.