To go to the mosque for Taleem (Virtue) or to teach/da’wah etc

Ibne Abdur Rahman (R.A) said, “he who proceeds towards the masjid in the morning or evening with the sole intention of teaching/preaching/calling towards good (da’wah) or learning (taleem). Thereafter he returns home he returns as a mujahid in the path of Allah who returns successful with the booty of war.