Good Lord - It’s Matthew 6:5 -
And when you pray, do not be like the hypocrites. For they love to pray standing in the synagogues and on the street corners to be seen by men. Truly I tell you, they already have their reward. But when you pray, go into your inner room, shut your door, and pray to your Father, who is unseen. And your Father, who sees what is done in secret, will reward you.
Or - to wit - Lindsay had to livestream her charitable work to show the world what a good person she is and got clobbered for it for the hypocrite she is.
I still disagree that your verse also includes brother so and so being asked to stand up and pray in his local church for the sick and for the salvation of souls before the offering plate is passed. I know about Matthew 6:5. Brother So and So probably isn’t even expecting any sort of reward and wasn’t even expecting to be asked to pray.(That is how many a Baptist preacher likes to keep things “lively”)
I think Luke 18:9-14 explains the sort of thing God is looking for and what he doesn’t in praying people...and remember...both went to pray in the temple.
Sure the most fervent deep felt prayers are to be done privately and public over done prayers will get nothing back but faint praise.