Psalm 119 is titled “Meditations and Prayers Relating to the Law of God” and this particular verse reads:
“I know, O Lord, that Thy judgments are righteous, and that in faithfulness Thou hast afflicted me.”
David is talking about what he has gone through and the suffering he’s experienced for his sinful choices. In God’s Law things are outlined along with their consequences and he’s acknowledging that he has deserved what he’s experienced. This is the understanding of a mature and humble man who realizes the fact that he has done wrong and is acknowledging so before the Lord.
3. Revelation 3:19
“Those whom I love I reprove and discipline; be zealous therefore, and repent.”
This *is* the Lord talking about the fact that when someone does wrong He will reprove them and discipline them. There is no specific mention of punishment on the part of the Lord. In fact it is the Lord warning that He won’t hesitate to reprove and discipline, so be spiritually mature and repent before that needs to happen. It’s almost like God asking us, “Can you stop yourself or do you need my help?”
So, we’ve got our author of Hebrews citing three verses that make clear that God will correct and discipline those whom He loves. No problem, we know that about God. It’s part of His character and He does it throughout Scripture. We also have the implication that as His children we need to repent and learn from the discipline.