A man asked the Messenger of Allah (ﷺ): Messenger of Allah, we travel on the sea and take a small quantity of water with us. If we use this for ablution, we would suffer from thirst. Can we perform ablution with sea water? The Messenger (ﷺ) replied: Its water is pure and what dies in it is lawful food.
Sunan Abi Dawud Book 1, Hadith 83