The Prophet ﷺ said, "No Muslim man frequents the mosques for prayer and remembrance of Allah without Allah delighting in him when he leaves his house, just as the family of an absent loved one delights at his return when he arrives among them."
حدثنا حجاج قال أخبرنا ابن أبي ذئب عن سعيد المقبري عن سعيد بن يسار
عن النبي ﷺ أنه قال لا يوطن رجل مسلم المساجد للصلاة والذكر إلا تبشبش الله به يعني حين يخرج من بيته كما يتبشبش أهل الغائب بغائبهم إذا قدم عليهم
Its isnad is sahih. Ibn Majah narrated it, 1/262, no. 802, in the chapter on mosques, staying in mosques, and Ibn Khuzayma, 2/379, no. 1503, and Ibn Hibban, 99, no. 309 in al-Mawarid, and Hakim, 1/213, who graded it sahih, and Dhahabi agreed with him.