THE PUBLIC WORSHIP OF GOD: Our Lord's admonition: "When thou prayest, go to thy chamber, etc.", must not be misunderstood. He does not intend to blame the public worship of God in churches, for He Himself went to the Temple, as also did His apostles. The public worship of God in common is necessary and pleasing to Him, but we must frequent it not to seek our own glory, but that of God. But our private devotions ought, if possible, to be made in secret, so that they may not be spoilt and made worthless in the sight of God by a desire for human praise.
[From 'A Practical Commentary on Holy Scripture' by Bishop Knecht, D.D.]