This is part 12 of 12 of “The Book of Dress, Adornment and Manliness”, book 26 of Al-Kafi — Hadith 12,644–12,646. The book is long enough that it is split across 12 pages so each one stays quick to load; the parts run in order and are linked at the foot of the page.
8. Sahl has narrated from Ahmad ibn Muhammad from ibn abu Nasr from Safwan from al-‘Ala’ from Muhammad ibn Muslim who has said the following: “One of the two Imam, (abu Ja‘far or abu ‘Abd Allah), ‘Alayhim al-Salam, has stated this Hadith. ‘You must not drink water when you are standing, must not urinate in stagnant water, must not spit on a grave, must not stay in a house alone, you must not walk in one shoe; Satan is the fastest against a servant when he is in one of such conditions.’ He (the Imam) said, ‘If one becomes affected in any one of such conditions, it will not leave him unless Allah, most Majestic, most Glorious, wants otherwise.’”
9. Ali ibn Ibrahim has narrated from his father from ibn abu ‘ Umayr from Hammad from al-Halabiy who has said the following: “Abu ‘Abd Allah, ‘Alayhi al-Salam, has said, ‘Satan is the strongest against man when he is alone, thus one must not sleep alone or travel alone.’”
10. A number of our people have narrated from Sahl ibn Ziyad and Ali ibn Ibrahim all from Muhammad ibn ‘Isa from al-Dihqan from Durust from Ibrahim ibn ‘Abd al-Hamid who has said the following: “Abu al-Hassan, Musa, ‘Alayhi al-Salam, has said, ‘Three things are feared for causing insanity: defecating among the gravesites, walking in one shoe and a man’s sleeping alone.’ Such things are disliked because of such reasons but they are not unlawful.” (The last sentence apparently is the words of the compiler).
Daif· al-Majlisi
Sunni collections: text from the open hadith-api dataset. Al-Kafi: Arabic text, Muhammad Sarwar's translation and gradings from Thaqalayn.net via the Thaqalayn API. Hadith numbering follows those editions and can differ from a printed copy — check the Arabic against a trusted edition before relying on a reference.