The Prophet ﷺ said, "Whoever prays in a mosque with the congregation for forty nights, never missing the first rakah of the evening prayer, Allah will record for him on account of it a release from the Fire."
حدثنا عثمان بن أبي شيبة حدثنا إسمعيل بن عياش عن عمارة بن غزية عن أنس بن مالك
عن النبي ﷺ أنه كان يقول من صلى في مسجد جماعة أربعين ليلة لا تفوته الركعة الأولى من صلاة العشاء كتب الله له بها عتقا من النار
No references are available.
[Its chain of transmission is daif]. Busiri said, Umarah did not reach Anas's time and never met him, and see hadith 75 for another defect.