“Whenever you pray, do not be like the hypocrites, because they love to pray while standing in synagogues and on street corners so that people can see them. Truly I say to you, they have their reward. But whenever you pray, go into your room, close the door, and pray to your Father in secret. And your Father, who sees in secret, will reward you” (Matthew 6:5-6).
Be careful about not living righteously merely to be seen by people. Otherwise you have no reward with your Father in heaven (Matthew 6:1).