Sunan Ibn Majah, Book 4, Hadith 60 (Ibn Majah 794)
Ibn 'Abbas and Ibn 'Umar narrated that:
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."