It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Safety for my Ummah from drowning when they board ships is that they say: 'In the name of Allah, the King', 'And they did not appraise Allah with His true appraisal, while the whole earth will be within His grip on the Day of Resurrection, and the heavens will be folded in His right hand. Exalted is He and high above what they associate with Him' [Al-Zumar: 67], 'In the name of Allah is its sailing and its anchoring. Indeed, my Lord is Forgiving, Merciful' [Hud: 41]."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12607