It sounds like you might be referring to the Song of Solomon (also known as the Song of Songs) from the Bible. This book is filled with poetic expressions of love and desire, often using vivid imagery.
One notable verse is Song of Solomon 7:7-8, where the speaker describes his beloved in terms related to fruit and nature. While coconuts aren't specifically mentioned, the themes of beauty and love are prevalent throughout the text. If you're interested, I can provide more details or explore specific verses related to love.