I read this concept today in Hebrews 12: 5-6 "And you have forgotten that word of encouragement that addresses you as sons: 'My son, do not make light of the Lord's discipline, and do not lose heart when He rebukes you, because the Lord disciplines those He loves, and He punishes everyone He accepts as a son."
Discipline is part of teaching and training, but it is not earning love or position. All the love is already there and the position of child is already there!! Discipline is an expression of love. This is true in my family and in God's.
Because we love our children we discipline them.
Hebrews 12: 7 "It is for discipline that you have to endure. God is treating you as sons."