Giving away food you wanted yourself
Three people are named as receiving it, and the reason given is one line.
وَيُطْعِمُونَ ٱلطَّعَامَ عَلَىٰ حُبِّهِۦ مِسْكِينًا وَيَتِيمًا وَأَسِيرًا إِنَّمَا نُطْعِمُكُمْ لِوَجْهِ ٱللَّهِ لَا نُرِيدُ مِنكُمْ جَزَآءً وَلَا شُكُورًا
Wa yuṭʿimūna-ṭ-ṭaʿāma ʿalā ḥubbihi miskīnan wa yatīman wa asīrā, innamā nuṭʿimukum li-wajhi-llāhi lā nurīdu minkum jazā'an wa lā shukūrā.
“And they give food in spite of love for it1 to the needy, the orphan, and the captive, [Saying], "We feed you only for the face [i.e., approval] of Allāh. We wish not from you reward or gratitude.”
The captive is included. That would have been an enemy prisoner.
Source
The Qur'an · 76:8-9
Qur'an
- Qur'anic text in the Uthmani script via Quran.com; translation: Saheeh International