“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.’”
Sunan Ibn Majah Book 28, Hadith 48