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.’”