Pot calling the kettle black
This notion of being critical of another when the criticism might apply equally to the criticiser, dates from at least the 1600s when all cooking pots and kettles were as black as one another.