Sunan Abi Dawud, Book 15, Hadith 13 (Abu Dawud 2490)

Narrated Abdullah ibn Amr ibn al-'As:

The Prophet (ﷺ) said: No one should sail on the sea except the one who is going to perform hajj or umrah, or the one who is fighting in Allah's path for under the sea there is a fire, and under the fire there is a sea.