"unclean hands" means someone is being criticized or judged because they have done something wrong or dishonest themselves. It suggests that they do not have the moral authority to judge others because they have also acted in a questionable or unethical way.
Full definition