This text comes from The Book of Scottish Song, edited by Alexander Whitelaw, a historical songbook transcribed on Wikisource and reproduced from the pinned revision linked below.
"As I went out to take the air,
'Twas on the banks of Diveron water,
I chose a maid to be my love,
Were it my fortune for to get her."
"Ye'll bring me here a pint of wine,
A server and a silver tassie,
That I may drink, before I gang,
A health to my ain bonnie lassie."
Go fetch to me a pint o' wine,
And fill it in a silver tassie;
That I may drink, before I go,
A service to my bonnie lassie.
The boat rocks at the pier of Leith,
Fu' loud the wind blaws frae the ferry;
The ship rides by the Berwick Law;
And I maun lea' my bonnie Mary.
The trumpets sound, the banners fiy;
The glittering spears are ranked ready;
The shouts o' war are heard afar;
The battle closes thick and bloody:
But it's not the roar of sea or shore,
Would mak' me langer wish to tarry;
Nor shouts of war, that's heard afar,
It's leaving thee, my bonnie Mary.