¨That´s the pot calling the kettle black.¨ Said to someone who has critcized a behavior of someone else, when they have done the same thing themselves. It is a way to point out hypocrisy. I think this is a very old one that is still used. I imagine it was from a time when pots and kettles were black.
Update: After posting this I started to wonder when this idiom started and whether it could have been racist. As this article indicates, it centuries old, from Miguel Cervantes classic ¨Don Quixote.¨ https://www.nationalreview.com/corner/racist-pot-calls-kettle-bigot-jonah-goldberg/ So I imagine this is an idiom in at least Spanish as well as English, and perhaps other languages as well.