Fiqh-us-Sunnah Volume 4, Funerals and Dhikr, Fiqh 4.148A.
Al-Hussain ibn Ali reported that the Prophet, peace be upon him, said, “The security for my community against drowning is to say, while boarding a ship (or a boat), ‘Bismillahi majraiha wa mursaha inna rahhi laghafoor un raheem (Bukhari), wa ma qadarullaha haqa qadrihi, wal ardu jami’an qabadatuhu yaumal qiyyamati was samawatu matwiyyatun hi yameenihi subhanallahi ‘amma yushrakun (Qur’an 11.41) (In the name of Allah, whether it move or be at rest! For my Lord is, be sure, Oft-Forgiving, Most merciful! No just estimate have they made of Allah, such as is due to Him, On the day of Judgment the whole of the earth will be but His handful, and the heavens will be rolled up in His right hand, Glory to Him! High is He above the partners they attribute to Him!)” This is reported by As-Sinni.