Deut 22:8

22:8 parapet for your roof. This is a law against criminal negligence. Roofs in ancient Israel were flat and often reached by an outside stairway. The roof was used for work (Josh. 2:6) or leisure. To prevent accidental injury or death from falling, a parapet or fence was specified.