"“David learned wisdom from God's dealings with him and bowed in humility beneath the chastisement of the Most High. The faithful portrayal of his true state by the prophet Nathan made David acquainted with his own sins and aided him to put them away. He accepted counsel meekly and humiliated himself before God. ‘The law of the Lord,’ he exclaims, ‘is perfect, converting the soul.’” [ Testimonies for the Church 4:14, 15 (1876) .] 5T 683.1"
"The law of the Lord is perfect, converting the soul: the testimony of the Lord is sure, making wise the simple."
The EGW passage directly quotes Psalm 19:7, attributing it to David's experience and highlighting the law's ability to convert the soul.
"“If ye be without chastisement, whereof all are partakers, then are ye ... not sons.” Our Lord has said: “As many as I love, I rebuke and chasten.” “No chastening for the present seemeth to be joyous, but grievous: nevertheless afterward it yieldeth the peaceable fruit of righteousness unto them which are exercised thereby.” Though bitter the discipline, it is appointed by a Father's tender love, “that we might be partakers of His holiness .” 5T 683.2"
"But if ye be without chastisement, whereof all are partakers, then are ye bastards, and not sons."
EGW directly quotes Hebrews 12:8 and alludes to Hebrews 12:11 and 12:10, expanding on the theme of chastisement as a sign of God's love and a means to holiness.