What does chastise mean in the Bible

Chastise means to rebuke someone.

In the Bible, it can refer to the act of correcting someone through punishment.

This punishment can be physical or emotional.

"Blessed is the man whom You chasten, O Lord, And whom You teach out of Your law" - Psalm 94:12