He published the poem in his 1827 collection "Minstrelsy, Ancient and Modern".
It is believed that Motherwell might have adapted the poem from an earlier oral tradition, but there is no concrete evidence to support this claim.