As described in the biblical book of Gensis and the Qur'an, he built an Ark for him, his family and a pair of each animal to survive the Great Flood God brought upon the world for its sinfulness.