Narrated AbuUmamah: The Messenger of Allah ﷺ said: If anyone goes out from his house after performing ablution for saying the prescribed prayer in congregation (in the mosque), his reward will be like that of one who goes for hajj pilgrimage after wearing ihram (robe worn by the hajj pilgrims). And he who goes out to say the mid-morning (duha) prayer, and takes the trouble for this purpose, will take the reward like that of a person who performs umrah. And a prayer followed by a prayer with no worldly talk during the gap between them will be recorded in Illiyyun.
This hadith encourages us to pray regularly and especially attend congregational prayers as they have great rewards associated with them. It also teaches us not to engage in any kind of idle talk while praying as this can reduce its reward significantly. Lastly, it reminds us about how Allah records all our good deeds so we should strive hard to do more righteous acts throughout our lives so they can benefit us both here and hereafter.