السابعة المحرَّم الذي يُضطر إلى تناوله قسمان مسكر وغيره فيباح جميعه ما لم يكن فيه إتلاف معصوم فيجوز للمضطر قتل الحربي والمرتد وأكله قطعاً وكذا الزاني المحصن والمحارب وتارك الصلاة على الأصح فيهم ولو كان له قصاص على غيره ووجده في حالة إضطرار فله قتله قصاصاً وأكله وإن لم يحضره السلطان وأما المرأة الحربية وصبيان أهل الحرب ففي التهذيب أنه لا يجوز قتلهم للأكل وجوزه الامام والغزالي لأنهم ليسوا بمعصومين والمنع من قتلهم ليس لحرمة أرواحهم ولهذا لا كفارة فيهم قلت الأصح قول الإمام والله أعلم
روضة الطالبين وعمدة المفتين للنووي كتاب الأطعمة البال الثاني في حال الإضطرار
The seventh [issue]: The forbidden things that one may be compelled to consume are of two types: intoxicants and everything else. All are permissible as long as no harm is done towards something that is under protection. Anyone who feels compelled is absolutely permitted to kill a fighter [i.e. of the opposing party], or an apostate, and eat them, and likewise a married adulterer, a fighter, or anyone who abandons prayer, according to the most correct opinion. And if someone is entitled to equal retribution [qasas] against someone that is not one of the above, and comes across this person while under circumstances of compulsion, than he may kill him and eat him as retribution, if the leader [sultan] is not present. Regarding women fighters and children of the attacking party, we find in the “Tahdheeb” that it is not permissible to kill them to eat them, although the Imam [i.e. Al-Shafi’i] and Al-Ghazali made it permissible, since they are not under protection, and the prohibition on killing them is not because of the sanctity of their lives; for this reason there is no atonement regarding them. I say: the most correct is what the Imam says; but Allah knows best.
Al-Nawawi, Rawda Al-talibeen wa-‘Udda Al-muftiyeen [Garden of Seekers and Instruments of Those who Render Judgments], The book of foods, Chapter two: in situations of compulsion