Hadithcore
Al-Adab Al-Mufrad, 1192
sahih· Al-Albani

'Ali reported that the Prophet, (ﷺ), said, "If anyone spends the night on the top of his house without protection, Allah has no responsibility for (protecting) him."

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

References2 variants
In-Book Reference
Book 48, Hadith 18
English Reference
Book 48, Hadith 1192