حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، قَالَ‏:‏ حَدَّثَنَا سَالِمُ بْنُ نُوحٍ، قَالَ‏:‏ أَخْبَرَنَا عُمَرُ، رَجُلٌ مِنْ بَنِي حَنِيفَةَ هُوَ ابْنُ جَابِرٍ، عَنْ وَعْلَةَ بْنِ عَبْدِ الرَّحْمَنِ بْنِ وَثَّابٍ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ عَلِيٍّ، عَنْ أَبِيهِ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ‏:‏ مَنْ بَاتَ عَلَى ظَهْرِ بَيْتٍ لَيْسَ عَلَيْهِ حِجَابٌ فَقَدْ بَرِئَتْ مِنْهُ الذِّمَّةُ‏.‏ قال: أبو عبد الله: في إسناده نظر.
Translation

Zuhayr reported that one of the Companions of the Prophet, may Allah bless him and grant him peace, said, "If anyone spends the night on a flat roof (without walls) and then falls off of it and dies, no one bears any responsibility for him. If anyone embarks on the sea when it is fierce (i.e. stormy) and is destroyed, no one bears any responsibility for him."