Is it permissible in Islam to spy on the enemy and use deception in war?
Seerah & HistoryQ&A answerQ&ASeerah of Prophet Muhammed (S)3 Apr 20136zWX6aOKuPoThe video starts at 1:09:41, where this question begins.
The answer
This is the time of war. What's the problem here? The Banu al-Mustaliq at the time, the Quraysh: this is open war. Every country in the world spies on its enemies. There is no problem here.
Look, there is a difference between treachery and deceit. Treachery is never allowed. Khiyana is never allowed in Islam, even in war. But deceit means, like, subterfuge, tactics, right? Sun Tzu and The Art of War, which is the earliest book ever written about war, over 2000-something years old: what is his first rule? Deceit is nine-tenths of war, something like this. Lying is nine-tenths of winning the battle. This is Sun Tzu, the Chinese philosopher, the first book of war ever written, and the number one rule in it. You're not going to be winning a war if you're 100% honest. You have to pretend there are weapons of mass destruction if you want to go to war; otherwise it's not going to happen. So this is the way the world works.
And I have said a million times, our Shari'ah is a practical, pragmatic Shari'ah. It's not a hypothetical, theoretical Shari'ah: always turn the other cheek and do whatever you want. It's a realistic, living-in-this-world Shari'ah. And if you want to live in this world as a political entity and power, well then, during times of war with your enemy, yes, this is what is done.
Even though, in the perfection of our Prophet, he never did it. Look at this: he never did it. The max he did was tawriya. "Where are you from?" "I am from water," right? "Abu Bakr, who is this?" "He is my guide, guiding me on the way," right? So no doubt the better is this. But in this case, yes, inshallah.
An edited transcript of the video, lightly cleaned up for reading. The video is the source; if the text and the video differ, the video is correct.
Related questions
Why did the Muslims not take immediate revenge on the tribes behind the massacre at Bi'r Ma'una?
Can a Sunni criticize the decisions of Uthman and the other Rightly Guided Caliphs?
Did any of the Quraysh ordered to be executed at the conquest of Makkah flee to India?
How did the Isra and Mi'raj take place, and did the Prophet ride the Buraq to the heavens?
Did the Prophet ﷺ contemplate suicide when revelation paused, as some reports claim?
Did the Prophet allow the Companions to raid the caravans of the Quraysh, and how do we explain it?
How should Muslims respond to criticism about Aisha's age at her marriage to the Prophet?
How should Muslims respond to criticism of the execution of the Banu Qurayza?