It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever goes early in the morning to the mosque with the intention of learning good or teaching it will have a reward like that of a pilgrim who has completed his Hajj."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7442