Jesus always spoke against the bad practices of the Pharisees and scribes, since these were the kind of leaders who appeared to be very clean on the outside, but inside they were like white washed sepulcres. God does not want us to be like them, God wants us to live a full holiness, and not a hypocrisy dressed in holiness that makes people believe that we are gods.
Jesus said to the scribes and Pharisees:
7 Ye hypocrites, well did Esaias prophesy of you, saying,
8 This people draweth nigh unto me with their mouth, and honoureth me with their lips; but their heart is far from me.