"To Be a Pilgrim" (also known as "He Who Would Valiant Be") is an English Christian hymn using words of John Bunyan in The Pilgrim's Progress. 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 hymn has also been sung to the melody "Moab" (John Roberts, 1870) and "St Dunstans" (Charles W. Douglas, 1917).