قال رسول الله ﷺ الحرب خدعة وفيه دليل على أنه لا بأس للمجاهد أن يخادع قِرنه في حالة القتال وأن ذلك لا يكون غدراً منه وأخذ بعض العلماء بالظاهر فقالوا يرخص في الكذب في هذه الحالة واستدلوا بحديث ابي هريرة رضي الله عنه أن النبي ﷺ قال لا يصلح الكذب إلا في ثلاث في الصلح بين إثنين وفي القتال وفي إرضاء الرجل أهله والمذهب عندنا أنه ليس المراد الكذب المحض فإن ذلك لا رخصة فيه وانما المراد إستعمال المعاريض
شرح كتاب السير الكبير للسرخسي باب الحرب خدعة
The Messenger of Allah (SAW) said: War is deceit. From this it is evident that there is no problem for a mujahid to deceive his opponent in times of fighting, and that this does not constitute treason on his part. Some of the scholars took this literally and said: This gives license to tell lies during these times. They drew this conclusion from the hadith of Abu Huraira (may Allah be pleased with him), that the Prophet (SAW) said: Telling lies is not appropriate except in three instances – in reconciliation between two people, in fighting, and in a man pleasing the women of his household. Our school of thought is that this does not mean telling pure lies, since license is not given for this, but rather the meaning is to use misleading speech.
Al-Sarakhsi, Sharh Kitab Al-siyar Al-kabir [Exposition of The Greater Volume on Courses of Conduct by Al-Shaybani], Section: war is deceit