152وَلَقَدْ صَدَقَكُمُ ٱللَّهُ وَعْدَهُۥٓ إِذْ تَحُسُّونَهُم بِإِذْنِهِۦ ۖ حَتَّىٰٓ إِذَا فَشِلْتُمْ وَتَنَـٰزَعْتُمْ فِى ٱلْأَمْرِ وَعَصَيْتُم مِّنۢ بَعْدِ مَآ أَرَىٰكُم مَّا تُحِبُّونَ ۚ مِنكُم مَّن يُرِيدُ ٱلدُّنْيَا وَمِنكُم مَّن يُرِيدُ ٱلْـَٔاخِرَةَ ۚ ثُمَّ صَرَفَكُمْ عَنْهُمْ لِيَبْتَلِيَكُمْ ۖ وَلَقَدْ عَفَا عَنكُمْ ۗ وَٱللَّهُ ذُو فَضْلٍ عَلَى ٱلْمُؤْمِنِينَ
[152] Allah did fulfil His promise (of help) to you: in the initial stage of the battle, it was you who were killing them by Allah's leave until you lost heart and disputed about your duty and disobeyed your leader, when Allah showed you what (the spoils) you coveted,108a-for there were among you some who hankered after the life of this world, and others, who cherished the Life-after-death. Then Allah caused your retreat before the disbelievers in order to test you, but the fact is that even then Allah pardoned109 you, for Allah is very gracious to the believers.
108aThis refers to the conduct of the archers. When they were commanded to abstain from taking spoils, they argued with and disobeyed their leader and deserted their positions with the result that the scales of victory were turned against the Muslims.
109That is, "Your desertion was an act which would have resulted in your total destruction, if Allah had not pardoned you. It was God's grace and succour that saved you from its grave consequences, and the Quraish, in spite of their victory, retreated of their own accord without any apparent reason. "