In Matthew 7, Jesus says not to judge but most people take him out of context and do not read his full thought. His focus was not to judge hypocritically. He even stated people should judge once they’re dealt with their own sin (verse 5).
I never hear righteous people say, “don’t judge me.” People who are trying to do the right thing want their wrongs pointed out so they can stop them. The only people I hear saying the “don’t judge” line are the ones who want to stop talking about it.