In the Gospel Jesus urged us to avoid fasting, praying, and doing good deeds just to get a reputation as spiritual persons.
We should not assume that Our Lord’s hatred for hypocrisy was his main reason for urging us to not be show offs. No, he three times clearly stated another motive for our being good in secret. We must do good things for the purpose of pleasing our Heavenly Father. The most precious thing for Jesus was his deep loving relationship with the Father, and he wanted us to devout all our energies toward having a similar deep and intimate relationship with our Heavenly Father.