This is a very old Scottish tune. Burns used it for a song, The Soldier's Return, by which the air is sometimes known.