 James died at Falkland Palace but was buried at Holyrood Abbey in Edinburgh with his first wife Queen Madeleine.Before he died he is reported to have said "it came wi a lass, it'll gang wi a lass" (meaning "It began with a girl and it will end with a girl").This was either a reference to the Stewart dynasty's accession to the throne through Marjorie Bruce, daughter of Robert the Bruce or to the medieval origin myth of the Scots nation, recorded in the "Scotichronicon" in which the Scots people are descended from the Princess Scota.