Christ, while He was here in the body of Jesus, very plainly stated that only heathens and hypocrites go to church, so they can be seen by others.
Matthew 6:5-8
6:5 And when thou prayest, thou shalt NOT be as the hypocrites [ARE]: for they love to pray standing in the churches and in the corners of the streets, that they may be seen by men. Verily I say unto you, They have their reward (they have been seen by men, but God will not answer them).
6:6 But thou, when thou prayest, enter into thy closet, and WHEN THOU HAST SHUT THY DOOR, pray to thy Father in private (Enoch 56:5; Sura 7:55); and thy Father which seeth in secret shall reward thee openly (by answering you).
6:7 But when ye pray, use NOT vain repetitions, as the heathen [DO]: for they think that they shall be heard for their much speaking.
6:8 Be NOT ye therefore like unto them: for your Father knoweth what things ye have need of, BEFORE ye ask Him.
Of course the Koran/Quran tells everyone the same thing.
Sura 4:142. The Hypocrites - they think they are over-reaching God, but He will over-reach them: when they stand up to prayer, they stand without earnestness, to be seen by men (Matt. 6:5), only little do they hold God in remembrance;
Sura 7:55. Call on your Lord with HUMILITY and in PRIVATE (Enoch 56:5; Matt. 6:6): for “I AM” loveth not those who trespass beyond bounds.
Sura 9:107-111
9:107. And there are those who put up mosques (churches; synagogues; etc.), by way of mischief and BETRAYAL - to disunite the Believers - and in preparation for one who warred against “I AM” (Revelation 12:7) and His Messenger aforetime. They will indeed swear that their intention is nothing but good; but “I AM” doth declare that they are certainly LIARS.
9:108. NEVER stand thou forth therein. There is an Holy Place (Mt. Moriah) whose foundation was laid from the first day on piety; it is more worthy of the standing forth (for prayer) therein. In it are men who love to be purified; and “I AM” loveth those who make themselves pure.
9:109. Which then is best? - he that layeth his foundation on piety (a Rock - Matthew 7:24-27) to “I AM” and His Good Pleasure? - or he that layeth his foundation on an undermined sand-cliff ready to crumble to pieces? And it doth crumble to pieces with him, into The Fire of Hell. And “I AM” guideth not people that do wrong (if they are doing wrong Satan is guiding them).
9:110. The foundation of those who so build is never free from suspicion and shakiness in their hearts, until their hearts are cut to pieces. And “I AM” is All-Knowing, Wise.
9:111. “I AM” hath purchased from the Believers their persons and their goods; for theirs (in return) is The Garden (of Bliss): they fight in His Cause, and slay and are slain: a promise binding on Him in Truth, through The Law (The Torah), The Gospel (New Testament/Covenant), and The Koran: and who is more faithful to His Covenant (in the Bible) than “I AM”? Then rejoice in the bargain which ye have concluded (to fulfill The Covenant of “I AM” written in the Bible): that is the achievement supreme.
When will we do as we’ve been COMMANDED to do for our own individual and collective benefit?