Proverbs 20:30
20:30 Beatings and wounds cleanse away evil,
and floggings cleanse the innermost being.
Hebrews 4:12-13
4:12 For the word of God is living and active and sharper than any double-edged sword, piercing even to the point of dividing soul from spirit, and joints from marrow; it is able to judge the desires and thoughts of the heart.
4:13 And no creature is hidden from God,
but everything is naked and exposed to the eyes of him to whom we must render an account.