Blessed are they who maintain justice, who constantly do what is right. (Psalm 106:3)
Is there anyone who constantly does what is right other than the Lord? I doubt. Maintaining justice and constantly doing right is no easy thing. Many people think that what they do is right, but unfortunately in the Lord's eyes it proves to be different.
The teachers of the law and the Pharisees brought in a woman caught in adultery. They made her stand before the group and said to Jesus, "Teacher, this woman was caught in the act of adultery. In the Law Moses commanded us to stone such women. Now what do you say?" They were using this question as a trap, in order to have a basis for accusing him. But Jesus bent down and started to write on the ground with his finger. When they kept on questioning him, he straightened up and said to them, "If any one of you is without sin, let him be the first to throw a stone at her."
Again he stooped down and wrote on the ground. At this, those who heard began to go away one at a time, the older ones first, until only Jesus was left, with the woman still standing there. (John 8:3-9)
Jesus is full of compassion. It's not that he was siding the person who was sinning. He wanted to give her a chance to change her life. Not only that, He wanted to show her accusers that they were no better. Thirdly, He also wanted to show that " Mercy triumphs over judgement"
As James writes,
Speak and act as those who are going to be judged by the law that gives freedom, because judgment without mercy will be shown to anyone who has not been merciful. Mercy triumphs over judgment! (James 2:12, 13)
Hope we too can find wisdom in that.