Surah Al-Anfal, ayah 67
مَا كَانَ لِنَبِىٍّ أَن يَكُونَ لَهُۥٓ أَسْرَىٰ حَتَّىٰ يُثْخِنَ فِى ٱلْأَرْضِ تُرِيدُونَ عَرَضَ ٱلدُّنْيَا وَٱللَّهُ يُرِيدُ ٱلْـَٔاخِرَةَ وَٱللَّهُ عَزِيزٌ حَكِيمٌ ﴿٦٧﴾
(67) It is not for a prophet to have captives [of war] until he inflicts a massacre [upon Allāh's enemies] in the land. You [i.e., some Muslims] desire the commodities of this world,[457] but Allāh desires [for you] the Hereafter. And Allāh is Exalted in Might and Wise.
- [457] i.e., material benefit, such as the ransom paid for prisoners.