وَلَقَدۡ صَدَقَكُمُ اللّٰهُ وَعۡدَهٗۤ اِذۡ تَحُسُّوۡنَهُمۡ بِاِذۡنِهٖۚ حَتّٰۤی اِذَا فَشِلۡتُمۡ وَتَـنَازَعۡتُمۡ فِى الۡاَمۡرِ وَعَصَيۡتُمۡ مِّنۡۢ بَعۡدِ مَاۤ اَرٰٮكُمۡ مَّا تُحِبُّوۡنَؕ مِنۡكُمۡ مَّنۡ يُّرِيۡدُ الدُّنۡيَا وَمِنۡكُمۡ مَّنۡ يُّرِيۡدُ الۡاٰخِرَةَ ۚ ثُمَّ صَرَفَكُمۡ عَنۡهُمۡ لِيَبۡتَلِيَكُمۡۚ وَلَقَدۡ عَفَا عَنۡكُمۡؕ وَ اللّٰهُ ذُوۡ فَضۡلٍ عَلَى الۡمُؤۡمِنِيۡنَ
Walaqad sadaqakumu AllahuwaAAdahu ith tahussoonahum bi-ithnihi hattaitha fashiltum watanazaAAtum fee al-amri waAAasaytummin baAAdi ma arakum ma tuhibboonaminkum man yureedu addunya waminkum man yureedual-akhirata thumma sarafakum AAanhum liyabtaliyakumwalaqad AAafa AAankum wallahu thoofadlin AAala almu/mineen
And Allāh had certainly fulfilled His promise to you when you were killing them i.e., the enemy by His permission until the time when you lost courage and fell to disputing about the order given by the Prophet (ﷺ) and disobeyed after He had shown you that which you love. Among you are some who desire this world, and among you are some who desire the Hereafter. Then He turned you back from them defeated that He might test you. And He has already forgiven you, and Allāh is the possessor of bounty for the believers.