Matthew 6:1
Romans 10:3
Matthew 23 1-36 covers quite a lot also.
The scribes and the Pharisees sit on Moses seat; so practice and observe whatever they tell you, but not what they do; for they preach, but do not practice.
Mathew 6:1 - “Be careful not to practice your righteousness in front of people, to be seen by them. Otherwise, you will have no reward from your Father in heaven.”
Nothing there about humiliating others by exposing their failings.
Romans 10:3 - “For they being ignorant of God’s righteousness, and going about to establish their own righteousness, have not submitted themselves unto the righteousness of God.”
Nothing there instructing us to humiliate others by exposing their failings...