Jesus told a parable about a Pharisee and a tax collector. They both went up to the temple to pray.
The Pharisee stood and thanked God that he wasn’t like all the bad people and that he wasn’t like this tax collector.
The tax collector stood at the side and quietly beat on his chest and said “God have mercy on me, a sinner”.
Jesus said the tax collector was the man who went home right with God. The Pharisee went away unchanged. The tax collector came before God with a humble attitude whereas the Pharisee had a proud heart which was boasting about all he’d done.