Sunan Ibn Majah, Book 28, Hadith 48 (Ibn Majah 3249)

It was narrated from Jabir bin ‘Abdullah that the Messenger of Allah (ﷺ) said:

“Whatever the sea throws out or is left behind when the tide ebbs, eat it, but whatever rises to its surface, do not eat it.’”