The quote is from the movie "The Return of the King".. Gandalf talking to Pippin. Partially from the movie and partially from the book.