The humpback whale later successfully freed itself after the tide rose in Queensland, Australia.