 The words sung after Bard and the Elvenking leave the mountain prior  to the battle ("The dragon is withered...") are taken from a song in  the book sung when Bilbo and Gandalf return to Rivendell on their  way home.