You get it from the mermaid in the Sunken Treasure Cove — and no, not that mermaid.
Make your way to the Sunken Treasure Cove and speak with the mermaid there. She is the one who hands over the potion you need for the tree. If a conversation feels like the wrong one, you have probably found a decorative character rather than the quest giver.
Click through the full dialogue before leaving. Quest items in point-and-click adventures are frequently awarded on the last line rather than the first, and walking away early means trekking back.