Here is the link to the Hymn of the Pearl, from the Acts of Thomas:
“Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death in judgement in the name of justice, fearing for your own safety. Even the very wise cannot see all ends.”
“‘I wish it need not have happened in my time,’ said Frodo.
‘So do I,’ said Gandalf, ‘and so do all who live to see such times. But that is not for them to decide. All we have to decide is what to do with the time that is given us.’”
J.R.R. Tolkien, The Fellowship of the Ring