This text comes from The Poetical Works of Robert Burns, a historical songbook transcribed on Wikisource and reproduced from the pinned revision linked below.
As Tam the Chapman on a day
Wi' Death forgather'd by the way,
Weel pleas'd, he greets a wight sae famous,
And Death was nae less pleased wi' Thomas,
Wha cheerfully lays down the pack,
And there blaws up a hearty crack;
His social, friendly, honest heart,
Sae tickled Death they could na part:
Sae after viewing knives and garters,
Death takes him hame to gie him quarters.