According to John Barbour's description of Douglas' last battle, when the enemy broke, Sir James and his companions followed hard behind. Having outstripped most of his men in the pursuit, Douglas suddenly found himself far out in front with only a few of his followers around him. As he rode back to rejoin the main body, he saw Sir William St. Clair of Rosslyn surrounded by a body of Moors who, seizing their opportunity, had quickly rallied and counterattacked. With the few knights who were with him, Douglas turned aside to attempt a rescue but, outnumbered twenty to one, the group was overrun. It has become a popular legend that Douglas then took from his neck the silver casket which contained the heart of Bruce and threw it before him among the enemy, saying, "Now pass thou onward as thou wert wont, and Douglas will follow thee or die." This anecdote has its origin in a 16th-century addition to Barbour's poem which, however, describes Douglas making the gesture at the beginning of his final battle. It was Sir Walter Scott in "Tales of a Grandfather" who created the image of Douglas throwing Bruce's heart as his dying act.