Jesus says he is the light of the world. In the first 11 verses of John 8 we read that religious leaders caught a women in adultery and brought her to Jesus to be stoned. They wanted to test Jesus but Jesus responded wisely and said: “Let any one of you who is without sin be the first to throw a stone at her.”
Everyone including religious leaders left because the Bible is clear that all have sinned and fallen short of glory of God. Then Jesus told the woman: “Then neither do I condemn you,” Jesus declared. “Go now and leave your life of sin.”
Jesus does not condemn sinners but wanted them to repent and to believe in him as their Saviour and redeemer.