“Why do you look at the speck of sawdust in your brother’s eye and pay no attention to the plank in your own eye?"
https://biblehub.com/matthew/7-3.htm
Avoiding self righteousness was very central to Jesus teachings.