Al-Hakam said: "During prayer in a ship, he should keep turning towards the qiblah whenever the ship turns."