They heard the Prophet say on his pulpit: "People should desist from failing to attend the congregations, otherwise Allah will seal their hearts, and they will be among the negligent."
Sunan Ibn Majah Book 4, Hadith 60