Surah Al-A'raf, ayah 31

7:31

۞ يَٰبَنِيٓ ءَادَمَ خُذُواْ زِينَتَكُمۡ عِندَ كُلِّ مَسۡجِدٖ وَكُلُواْ وَٱشۡرَبُواْ وَلَا تُسۡرِفُوٓاْۚ إِنَّهُۥ لَا يُحِبُّ ٱلۡمُسۡرِفِينَ ٣١

Yābanī ādama khudhū zīnatakum 'inda kulli masjidin wakulū washrabū walā tusrifū innahū lā yuhibbul-musrifīn

O children of Adam, take your adornment [i.e., wear your clothing] at every masjid,366 and eat and drink, but be not excessive. Indeed, He likes not those who commit excess.

Footnotes

366 Literally, "place of prostration," meaning any place that a Muslim prays upon the earth. The term may also refer specifically to a mosque.