Ben Sira 11:27

27 The affliction of an hour maketh a man forget pleasure: and in his end his deeds shall be discovered.

Ben Sira 11:27 In-Context

25 In the day of prosperity there is a forgetfulness of affliction: and in the day of affliction there is no more remembrance of prosperity.
26 For it is an easy thing unto the Lord in the day of death to reward a man according to his ways.
27 The affliction of an hour maketh a man forget pleasure: and in his end his deeds shall be discovered.
28 Judge none blessed before his death: for a man shall be known in his children.
29 Bring not every man into thine house: for the deceitful man hath many trains.
The King James Version is in the public domain.