It is permissible for the ruler, when he is about to set out for jihad, to point to a place other than his intended destination, and to send spies to keep informed of the situation
It is narrated from Ka’b ibn Malik (may Allah be pleased with him) that:
أنه صلى الله عليه وسلم كان إذا أراد غـروة ورى بغيرها
“When the Prophet ﷺ wished to go on a military expedition, he would use tawriyah (concealing it from others).”
➊ Jabir (may Allah be pleased with him) says that on the day of the Battle of al-Ahzab the Prophet ﷺ said:
من يأتيني بخبر القوم
“Who will bring me news of the (enemy) people?”
So Zubayr (may Allah be pleased with him) said, “I will.” Then the Prophet ﷺ said: “Every prophet has a hawari (helper), and my hawari is Zubayr.”
➋ In one narration it is stated that:
أن النبى صلى الله عليه وسلم بعث عينا ينظر عير أبى سفيان
“The Prophet ﷺ sent out a spy to observe the caravan of Abu Sufyan.”
➌ In the Battle of Badr, the Prophet ﷺ sent out some men as spies to find out the number of the polytheists’ army.