Ali 'Imran 3:161
وَمَا كَانَ لِنَبِىٍّ أَن يَغُلَّ ۚ وَمَن يَغْلُلْ يَأْتِ بِمَا غَلَّ يَوْمَ ٱلْقِيَـٰمَةِ ۚ ثُمَّ تُوَفَّىٰ كُلُّ نَفْسٍ مَّا كَسَبَتْ وَهُمْ لَا يُظْلَمُونَ
Wama kana linabiyyin anyaghulla waman yaghlul ya/ti bima ghalla yawma alqiyamatithumma tuwaffa kullu nafsin ma kasabat wahum layuthlamoon
It is not [attributable] to any prophet that he would act unfaithfully [in regard to war booty]. And whoever betrays, [taking unlawfully], will come with what he took on the Day of Resurrection. Then will every soul be [fully] compensated for what it earned, and they will not be wronged.
It is not conceivable from a prophet to misappropriate the spoils. Whoever misappropriates shall bring forth, on Doomsday, what he misappropriated. Then, everybody shall be paid, in full, for what he has earned, and they shall not be wronged.