Sirach 11:27

An hour’s misery makes one forget past delights, and at the close of one’s life one’s deeds are revealed.