The Prophet (peace and blessings be upon him) forbade a man sleeping on a roof that has no parapet around it.