the pot calling the kettle black

The pot calling the kettle black is a phrase used as the notion of a criticism a person makes of another person that could apply to themselves as well. The phrase refers to the fact that both the pot and the kettle are black so if the pot is calling the kettle black (someone criticizing someone else) they mine as well not because it is could just as easily be turned around on themselves.