Heb 12:6,7. For the Lord disciplines the one he loves, and chastises every son whom he receives." It is for discipline that you have to endure. God is treating you as sons. For what son is there whom his father does not discipline?
God wants us to follow him because he knows what's best for us. He doesn't give his commands make our lives tough but because he loves us, He knows what can hurt us. When we get off track, God disciplines us Like a loving father, he uses discipline to help us get right with him again. Don't get discouraged when God disciplines you. It's a sure sign that He loves you and wants what's best for you.
Deu 8:5,6. Know then in your heart that, as a man disciplines his son, the LORD your God disciplines you. So you shall keep the commandments of the LORD your God by walking in his ways and by fearing him.
Psa 89:30-34. If his children forsake my law and do not walk according to my rules,- if they violate my statutes and do not keep my commandments, - then I will punish their transgression with the rod and their iniquity with stripes, - but I will not remove from him my steadfast love or be false to my faithfulness. - I will not violate my covenant or alter the word that went forth from my lips.
As the Lord corrected the posterity of David for their transgressions, so his people shall be corrected for their sins. Yet it is but a rod, not a sword; it is to correct, not to destroy. It is a rod in the hand of God, who is wise, and knows what he does; gracious, and will do what is best. It is a rod which they shall never feel, but when there is need. As the sun and moon remain in heaven, whatever changes there seem to be in them, and again appear in due season; so the covenant of grace made in Christ, whatever alteration seems to come to it, should not be questioned.