>>17864550That is the story of Bacchus. Pirates had kidnapped him after disbelieving his story of being a god and as they tied him to the pole he summoned his dolphin friends to release him. The pirates became dolphins and the mast of the ship became entwisted with vines.
This was in the Homeric hymn to Bacchus