Hadith 4721
وَعَنْ جَابِرٍ قَالَ: نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ يَنَامَ الرَّجُلُ عَلَى سطحٍ لَيْسَ بمحجورٍ عَلَيْهِ. رَوَاهُ التِّرْمِذِيّ
Jabir (may Allah be pleased with him) reports that the Messenger of Allah (peace and blessings be upon him) forbade a person from sleeping on a roof that has no barrier. Its chain is weak; narrated by al-Tirmidhi.