But you, when you pray, enter into your room, and when you have shut your door, pray to your Father who is in secret; and your Father who sees in secret shall reward you openly.
All Commentaries on Matthew 6:6 Go To Matthew 6
George Leo Haydock
Because he who should pray in his chamber, and at the same time desire it to be known by men, that he might thence receive vain glory, might truly be said to pray in the street, and sound a trumpet before him: whilst he, who though he pray in public, seeks not thence any vain glory, acts the same as if he prayed in his chamber. (Menochius)
Jesus Christ went up to the temple, to attend public worship on the festival days.