What English idiom or proverb is equivalent to this Hindi expression: "Having eaten 900 rats, cat moves to Hajj"

“People who live in glass houses shouldn’t throw stones.” TFD

It is uncouth, hypocritical, or unacceptable to criticize or judge other people for faults or misdeeds of which one is also guilty