Sunan Ibn Majah #794
The Book On The Mosques And The Congregations 4:60
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."