"Whoever goes to the masjid in the morning and evening, Allah will prepare for him a place in Paradise for every morning and evening."
The Prophet (ﷺ) said, “When a man dies, his deeds come to an end except for three things: Sadaqah Jariyah (continuing charity), knowledge which is beneficial, or a virtuous descendant who prays for him” [Muslim]