2 Maccabees 6:30

30 When he was about to die under the blows, he groaned aloud and said: "It is clear to the Lord in his holy knowledge that, though I might have been saved from death, I am enduring terrible sufferings in my body under this beating, but in my soul I am glad to suffer these things because I fear him."

2 Maccabees 6:30 In-Context

28 and leave to the young a noble example of how to die a good death willingly and nobly for the revered and holy laws." When he had said this, he went at once to the rack.
29 Those who a little before had acted toward him with goodwill now changed to ill will, because the words he had uttered were in their opinion sheer madness.
30 When he was about to die under the blows, he groaned aloud and said: "It is clear to the Lord in his holy knowledge that, though I might have been saved from death, I am enduring terrible sufferings in my body under this beating, but in my soul I am glad to suffer these things because I fear him."
31 So in this way he died, leaving in his death an example of nobility and a memorial of courage, not only to the young but to the great body of his nation.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.