2 Cor 1:3-6, Rom 5:3-6
In the Old Testament, David praised the greatness of God's mercy even though he was in danger of death. (Psalms 57:4-11)
Psalms 57:4 My soul is among lions: and I lie even among them that are set on fire, even the sons of men, whose teeth are spears and arrows, and their tongue a sharp sword. 5 Be thou exalted, O God, above the heavens; let thy glory be above all the earth. 6 They have prepared a net for my steps; my soul is bowed down: they have digged a pit before me, into the midst whereof they are fallen themselves. Selah. 7 My heart is fixed, O God, my heart is fixed: I will sing and give praise. 8 Awake up, my glory; awake, psaltery and harp: I myself will awake early. 9 I will praise thee, O Lord, among the people: I will sing unto thee among the nations. 10 For thy mercy is great unto the heavens, and thy truth unto the clouds. 11 Be thou exalted, O God, above the heavens: let thy glory be above all the earth.
Paul praised God for the comfort of God in Christ amidst all tribulation. (2 Corinthians 1:3-6, Romans 5:3-6)
2 Corinthians 1:3 Blessed be God, even the Father of our Lord Jesus Christ, the Father of mercies, and the God of all comfort; 4 Who comforteth us in all our tribulation, that we may be able to comfort them which are in any trouble, by the comfort wherewith we ourselves are comforted of God. 5 For as the sufferings of Christ abound in us, so our consolation also aboundeth by Christ. 6 And whether we be afflicted, it is for your consolation and salvation, which is effectual in the enduring of the same sufferings which we also suffer: or whether we be comforted, it is for your consolation and salvation.
Romans 5:3 And not only so, but we glory in tribulations also: knowing that tribulation worketh patience; 4 And patience, experience; and experience, hope: 5 And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us. 6 For when we were yet without strength, in due time Christ died for the ungodly.