One version of the tune dates from at least the middle of the 17th century. It has been known as Dainty Davy or Dainty Davie since at least 1657, when it was first published in John Playford's collection The Dancing Master.
This poem was based on a story published in a 1692 anti-Presbyterian propaganda pamphlet, The Scots Presbyterian Eloquence Displayed, and focusing on a preacher, David Williamson, seven times married minister of St. Cuthbert's Church, Edinburgh (died August 1706).
There is also a Scottish country dance called Dainty Davie.
Meet me on the warlock knowe,
Dainty Davie, Dainty Davie;
There I'll spend the day wi' you,
My ain dear Dainty Davie.
The crystal waters round us fa',
The merry birds are lovers a',
The scented breezes round us blaw,
A wandering wi' my Davie.
As purple morning starts the hare,
To steal upon her early fare,
Then thro' the dews I will repair,
To meet my faithfu' Davie.
When day, expiring in the west,
The curtain draws o' Nature's rest,
I flee to his arms I loe' the best,
And that's my ain dear Davie.