In the scriptures it says not to judge but then it says we need to judge righteously. Almost seems like a contradiction. In order to judge righteously we MUST know a person’s heart. No one can know a person’s heart, most of us have an outward persona that help keep us safe and guarded. Sometimes our actions don’t really speak of what we truly feel or think and as much as we want the world to see beyond those imperfections, we don’t always give the same benefit to others.
There in lies the sin of hypocrisy. We expect everyone else to know our hearts in spite of our actions. So until we can judge righteously we must be careful not to judge at all. You see it really isn’t a contradiction, but a commandment with stipulations.