ProseChild, the books of Job, Psalms, Proverbs, Ecclesiastes, Romans, 2 Corinthians, Hebrews, James, and 1 & 2 Peter...all good edification about enduring Divine discipline, chastening, testing, and trials.
Here are some specific verses...
Deuteronomy 8:2-5 And you shall remember that the LORD your God led you all the way these forty years in the wilderness,
to humble you and test you, to know what was in your heart, whether you would keep His commandments or not. So He humbled you, allowed you to hunger, and fed you with manna which you did not know nor did your fathers know, that He might make you know that man shall not live by bread alone; but man lives by every word that proceeds from the mouth of the LORD...
You should know in your heart that as a man chastens his son, so the LORD your God chastens you.
Job 5:17 Behold, happy is the man whom God corrects; therefore do not despise the chastening of the Almighty.
Psalm 6:1-2 O LORD, do not rebuke me in Your anger, nor chasten me in Your hot displeasure. Have mercy on me, O LORD, for I am weak; O LORD, heal me, for my bones are troubled.
Psalm 38:1-2 O LORD, do not rebuke me in Your wrath,
nor chasten me in Your hot displeasure! For Your arrows pierce me deeply, and Your hand presses me down.
Psalm 73:14 For all day long I have been plagued, and
chastened every morning.
Psalm 118:17-19 I shall not die, but live, and declare the works of the LORD.
The LORD has chastened me severely, but He has not given me over to death. Open to me the gates of righteousness; I will go through them, and I will praise the LORD.
Proverbs 1:2-7 for attaining wisdom and discipline; for understanding words of insight; for acquiring a disciplined and prudent life, doing what is right and just and fair; for giving prudence to the simple, knowledge and discretion to the young- let the wise listen and add to their learning, and let the discerning get guidance- for understanding proverbs and parables, the sayings and riddles of the wise. The fear of the Lord is the beginning of knowledge, but fools despise wisdom and discipline.
Proverbs 3:11-12 ...do not despise the chastening of the LORD, nor detest His correction; for whom the LORD loves He corrects, just as a father the son in whom He delights.
Hebrews 12:1-11 Therefore we also, since we are surrounded by so great a cloud of witnesses, let us lay aside every weight, and the sin which so easily ensnares us, and let us run with endurance the race that is set before us, looking unto Jesus, the author and finisher of our faith, who for the joy that was set before Him endured the cross, despising the shame, and has sat down at the right hand of the throne of God. For consider Him who endured such hostility from sinners against Himself, lest you become weary and discouraged in your souls. You have not yet resisted to bloodshed, striving against sin. And you have forgotten the exhortation which speaks to you as to sons: "My son, do not despise the chastening of the LORD, nor be discouraged when you are rebuked by Him; for whom the LORD loves He chastens, and scourges every son whom He receives. If you endure chastening, God deals with you as with sons; for what son is there whom a father does not chasten? But if you are without chastening, of which all have become partakers, then you are illegitimate and not sons. Furthermore, we have had human fathers who corrected us, and we paid them respect. Shall we not much more readily be in subjection to the Father of spirits and live? For they indeed for a few days chastened us as seemed best to them, but He for our profit, that we may be partakers of His holiness. Now no chastening seems to be joyful for the present, but painful; nevertheless, afterward it yields the peaceable fruit of righteousness to those who have been trained by it.
Revelations 3:19-20 As many as I love, I rebuke and chasten. Therefore be zealous and repent. Behold, I stand at the door and knock. If anyone hears My voice and opens the door, I will come in to him and dine with him, and he with Me.