Al-Imran
3:152

Al-Imran 152

وَلَقَدْ صَدَقَكُمُ اللَّهُ وَعْدَهُ إِذْ تَحُسُّونَهُمْ بِإِذْنِهِ ۖ حَتَّىٰ إِذَا فَشِلْتُمْ وَتَنَازَعْتُمْ فِي الْأَمْرِ وَعَصَيْتُمْ مِنْ بَعْدِ مَا أَرَاكُمْ مَا تُحِبُّونَ ۚ مِنْكُمْ مَنْ يُرِيدُ الدُّنْيَا وَمِنْكُمْ مَنْ يُرِيدُ الْآخِرَةَ ۚ ثُمَّ صَرَفَكُمْ عَنْهُمْ لِيَبْتَلِيَكُمْ ۖ وَلَقَدْ عَفَا عَنْكُمْ ۗ وَاللَّهُ ذُو فَضْلٍ عَلَى الْمُؤْمِنِينَ

Va lakaad saadaakaakumulleahu vaa’dahoo iz tahussoonahum bi iznih(iznihee), haattea izea fashiltum va taneazaa’tum feel amri va aasaaytum min baa’di mea areakum mea tuhıbboon(tuhıbboona), minkum man yureedud dunyea va minkum man yureedul eahirah(eahirata), summa saaraafakum aanhum li yabtaliyakum, va lakaad aafea aankum, vaalleahu zoo faadlin aalal mu’mineen(mu’mineena).

And Allah did indeed fulfill His Promise to you when you were killing them with His Permission. But you lost heart and fell into disagreement about the order, and disobeyed, after He showed you what you love (victory). Some of you were desiring this world (ran for the booty) and of you were some who desired the Hereafter (they remained in their places until they became martyrs); then He turned you away from them that He might try you (you turned back being defeated) and (in spite of this) He has certainly pardoned you and Allah is Owner of Phazl (light, generosity) in relation to the believers.

...