"If you build a new house, you shall make a railing for your roof": This tells me only of "building." Whence do I derive (the same for) acquiring, inheriting, and receiving as a gift? From (Ibid.) "and you shall not place blood in your house" — in any event.
Build a New House and Build a Railing - Safety and Torah Law
Sifrei Devarim 229:1