It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that a man, while going out of Makkah, came to the Messenger of Allah (peace and blessings be upon him) and greeted him with salam. The Prophet (peace and blessings be upon him) asked him: "Do you have any companion with you?" He said: "No." The Prophet (peace and blessings be upon him) said: "A lone traveller is a devil (being prone to evil whisperings because of his solitude), two travellers are two devils, and three persons are a (proper) caravan."
Abu Bakr bin Abi Shaybah recorded it with a sahih (authentic) chain; al-Hakim recorded it and declared it sahih, and from him al-Bayhaqi in al-Sunan al-Kubra. Its marfu' part was recorded by Imam Malik, Abu Dawud, al-Tirmidhi (who called it hasan) and al-Nasa'i with sahih chains, and also by Ibn Khuzaymah, who gave it this chapter heading: The prohibition of two men travelling (alone), and the proof that travellers fewer than three are disobedient, since the Prophet (peace and blessings be upon him) has stated that one alone is a devil and two are two devils; and most probably "devil" means "disobedient", as in the saying of Allah Almighty: "devils among mankind and jinn", that is, the disobedient ones among mankind and jinn. It has a supporting narration (shahid) from the hadith of Sayyiduna Abu Hurayrah (may Allah be pleased with him), which al-Hakim recorded and declared sahih; a second from the hadith of Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him), which will come in the Book of Jihad; and a third from the hadith of Sayyiduna Ibn Abbas (may Allah be pleased with them both), which will come in the Book of Manners in the chapter on solitude.
Hadith Takhrij«رواه أبو بكر بن أبي شيبة بإسناد صحيح، والحاكم وصححه وعنه البيهقي في الكبرى، وروى المرفوع منه مالك، وأبو داود، والترمذي وحسنه، والنسائي بأسانيد صحيحة وابن خزيمة وبوب عليه: باب النهي عن سير الاثنين والدليل على أن ما دون الثلاث من المسافرين عصاة إذ النبي صلى الله…»