بسم الله الرحمن الرحيم
The prophet (ﷺ) said:
إذا خرجتَ من منزِلِك فصلِّ ركعتينِ تمنعانِكَ مخرجَ السُّوءِ و إذا دخلْتَ إلى منزِلِك فصلِّ ركعتينِ تمنعانِكَ مدْخلَ السُّوءِ
“When you leave your home then pray two rak’ah; to prevent you from an evil exit. And when you enter your home pray two rak’ah; to prevent you from an evil entrance.”
(Sahīh al-Jāmi’ of Al-Albānī #505 who declared it Hasan. Also authenticated by al-Haythamī in Majma’ al-Zawāid 2/284; who said “it’s men are trustworthy”. Declared Hasan by Ibn Hajr as said by Al-Manāwī in Kitāb Fayd al-Qadīr 1/334)
Al-Sanānī said:
(When you leave your home) to any place, and it is possible that it is specific to leaving for travel and the like… (to prevent you from an evil exit)… meaning the exit of evil, and the same applies to the entrance, meaning they repel from you what would harm you. (Sharh Jāmi’ al-Saghīr 2/32, abridged)
Muhammad al-Bazmūl said:
It is prescribed for a Muslim to pray two rak’ahs when he enters his house and when he leaves his house. (Bughiat al-Mutatawwi’ Fī Salāt al-Tatawwu’ pg. 92)
