Deuteronomy 8:16

8:16 fed you in the desert with manna (which your ancestors had never before known) so that he might by humbling you test you and eventually bring good to you.

Psalms 94:12-14

94:12 How blessed is the one whom you instruct, O Lord,

the one whom you teach from your law,

94:13 in order to protect him from times of trouble,

until the wicked are destroyed.

94:14 Certainly the Lord does not forsake his people;

he does not abandon the nation that belongs to him.

Psalms 119:67

119:67 Before I was afflicted I used to stray off,

but now I keep your instructions.

Psalms 119:71

119:71 It was good for me to suffer,

so that I might learn your statutes.

Romans 8:28

8:28 And we know that all things work together for good for those who love God, who are called according to his purpose,

Hebrews 12:5-10

12:5 And have you forgotten the exhortation addressed to you as sons?

My son, do not scorn the Lord’s discipline

or give up when he corrects you.

12:6For the Lord disciplines the one he loves and chastises every son he accepts.

12:7 Endure your suffering as discipline; God is treating you as sons. For what son is there that a father does not discipline? 12:8 But if you do not experience discipline, something all sons have shared in, then you are illegitimate and are not sons. 12:9 Besides, we have experienced discipline from our earthly fathers and we respected them; shall we not submit ourselves all the more to the Father of spirits and receive life? 12:10 For they disciplined us for a little while as seemed good to them, but he does so for our benefit, that we may share his holiness.

Revelation 3:19

3:19 All those I love, I rebuke and discipline. So be earnest and repent!