مَا كَانَ لِنَبِيٍّ أَن يَكُونَ لَهُ أَسْرَىٰ حَتَّىٰ يُثْخِنَ فِي الْأَرْضِ ۚ تُرِيدُونَ عَرَضَ الدُّنْيَا وَاللَّهُ يُرِيدُ الْآخِرَةَ ۗ وَاللَّهُ عَزِيزٌ حَكِيمٌ (67)
(8:67) It behoves not a Prophet to take captives until he has sufficiently suppressed the enemies in the land. You merely seek the gains of the world whereas Allah desires (for you the good) of the Hereafter. Allah is All-Mighty, All-Wise.