Proverbs 3:12
10 then your barns will be filled completely, and your vats will overflow with new wine. 11 My child, do not despise discipline from the Lord, and do not loathe his rebuke. 12 For the Lord disciplines those he loves, just as a father disciplines the son in whom he delights. 13 Blessed is the one who has found wisdom and the one who obtains understanding. 14 For her benefit is more profitable than silver, and her gain is better than gold.
Psalms of Solomon 10:1
1 Happy is the person whom the Lord remembers with punishment, and who has been restrained from going the wrong way with a whip, to be cleansed from sin so that it will not increase. 2 Those who prepare their backs for the whips will be cleansed, for the Lord is kind to those who endure discipline. 3 For he will set straight the ways of the righteous, and will not lead them astray by discipline, and the mercy of the Lord is upon those who truly love him.
Notes and References
"... The two primary motifs are visible in the structure of this psalm. The first is God’s righteousness and mercifulness, which for the author are manifested in the process of discipline for the devout. The second is the promise of the devout to praise the Lord. Discipline is described as a purification or as a cleansing from sin. The first two verses are a statement from the author about God’s blessing, which the devout receive in chastisement. And the willingness to endure God’s discipline can be regarded as a stamp of the righteous person (Psalms of Solomon 10:1–2; Psalm 119:68; 145:9). In the next two verses (Psalms of Solomon 10:3–4), the psalmist states that the discipline of the Lord helps the pious to return to the proper way of life in accordance with God’s will, which means that God assists the pious in the process of rectification ..."
Ábel, František The Psalms of Solomon and the Messianic Ethics of Paul (p. 148) Mohr Siebeck, 2016