Narrated Ali ibn Shayban: The Prophet (ﷺ) said: If anyone spends the night on the roof of a house with no stone palisade, Allah's responsibility to guard him no longer applies
Hadith No. 5041
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Hasan