Hazrat Abu Umaamah (Radiyallahu Anhu) reports that Nabi (Sallallahu Alayhi Wasallam) said: “Whosoever goes to the Musjid solely to learn some aspect of Deen or to teach it, will receive the reward of a perfect Hajj.”