Cast the first stone

To be the first to attack someone, to be quick to blame or criticize or punish others.

I told my friend that she should look at herself and her bad points rather than cast the first stone and criticize her friend.