"To Be a Pilgrim" (also commonly known as "He who would Valiant be") is the only hymn John Bunyan is credited with writing, and is indelibly associated with him. It first appeared in Part 2 of The Pilgrim's Progress, written in 1684. The hymn recalls the words of Hebrews 11:13: "...and confessed that they were strangers and pilgrims on the earth."
The words were modified extensively by Percy Dearmer for the 1906 The English Hymnal. At the same time it was given a new tune by British composer Ralph Vaughan Williams using the traditional Sussex melody "Monk's Gate". The hymn has also been sung to the melody "Moab" (John Roberts, 1870) and "St. Dunstans" (Charles W. Douglas, 1917).
For a time, Bunyan's original version was not commonly sung in churches, perhaps because of the references to "hobgoblin" and "foul fiend." However, one commentator has said: "Bunyan's burly song strikes a new and welcome note in our Hymnal. The quaint sincerity of the words stirs us out of our easygoing dull Christianity to the thrill of great adventure." Recent hymn books have tended to return to the original, for example, the Church of England's Common Praise and the Church of Scotland's Church Hymnary 4th Edition (Hymns of Glory, Songs of Praise).
The original version of "To be a Pilgrim" is the school hymn for the Royal Grammar School, Guildford, Newcastle Grammar School, Derby Grammar School, Westcliff High School for Girls, Dartford Grammar School, Cardinal Vaughan Memorial School, Hope Waddell Training Institution, Elmwood School and Reigate Grammar School (whose annual publication, The Pilgrim, takes its name from the hymn). It is also the school hymn of Caistor Grammar School, where it is sung in the annual church service to end the school year.