Robert the Bruce later account, "Tales of a Grandfather" by Sir Walter Scott, and may have originally been told about his companion-in-arms Sir James Douglas (the "Black Douglas"), who had spent time hiding out in caves within his manor of Lintalee, which was then occupied by the English. The entire account may in fact be a version of a literary trope used in royal biographical writing. A similar story is told, for example, in Jewish sources about King David, and in Persian folklore about the Mongolian warlord Tamerlane and an ant. It is said that before the Battle of Bannockburn, Bruce was attacked
Robert the Bruce held and once more the crown was placed on the brow of Robert Bruce, Earl of Carrick, Lord of Annandale, King of the Scots. In June 1306 Bruce was defeated at the Battle of Methven. His wife and daughters and other women of the party were sent to Kildrummy in August 1306 under the protection of Bruce's brother, Neil Bruce, and the Earl of Atholl and most of his remaining men. Bruce fled with a small following of his most faithful men, including Sir James Douglas and Gilbert Hay, Bruce's brothers Thomas, Alexander, and Edward, as well as Sir Neil