It is narrated from a companion of the Prophet (ﷺ) that the Prophet (ﷺ) said: "Whoever spends the night on an open roof and falls from it and dies, there is no liability for him. And whoever travels by sea during a storm and is destroyed, there is also no liability for him."
Hadith Referenceالادب المفرد / كتاب / 1194
Hadith Gradingالألبانی:حسن
Hadith Takhrij«حسن : أخرجه البخاري فى التاريخ الكبير : 426/3 و أحمد : 20749 - أنظر الصحيحة : 828»
Explanation & Benefits
Shaykh Maulana Usman Muneeb
Benefits and Issues: It is necessary to construct walls and curtains on the roof so that there is no risk of falling; otherwise, one should avoid sleeping on such a roof. Similarly, when the sea is in a state of turbulence during the white days (Ayyam al-Beedh) or for any other reason, one should avoid traveling in it.
Source: Fadlullah al-Ahad: Urdu Commentary on al-Adab al-Mufrad, Page: 1194