One of the companions of Muhammad narrated to me, while we were on a military expedition toward Persia, that the Messenger of Allah ﷺ said, "Whoever spends the night on top of a house that has no protective barrier and falls from it and dies, no protection is owed to him. And whoever sails the sea when it is raging and dies, no protection is owed to him."
حدثنا أزهر بن القاسم حدثنا محمد بن ثابت
حدثني بعض أصحاب محمد وغزونا نحو فارس فقال قال رسول الله ﷺ من بات فوق بيت ليست له إجار فوقع فمات فبرئت منه الذمة ومن ركب البحر عند ارتجاجه فمات فقد برئت منه الذمة