Malik reported: Abu Bakr ibn Abdur Rahman, may Allah have mercy on him, used to say, “Whoever departs to the mosque in the morning, intending to go nowhere else and to teach goodness or to learn it himself, then he returns to his house, he is like one who wages jihad in the way of Allah and returns with spoils.”
Source: al-Muwaṭṭa’ Riwāyat al-Zuhrī 529
عَنْ مَالِكٍ أَنَّ أَبَا بَكْرِ بْنَ عَبْدِ الرَّحْمَنِ رَحِمَهُ اللَّهُ كَانَ يَقُولُ مَنْ غَدَا أَوْ رَاحَ إِلَى الْمَسْجِدِ لَا يُرِيدُ غَيْرَهُ لِيَتَعَلَّمَ خَيْرًا أَوْ لِيُعَلِّمَهُ ثُمَّ رَجَعَ إِلَى بَيْتِهِ كَانَ كَالْمُجَاهِدِ فِي سَبِيلِ اللَّهِ رَجَعَ غَانِمًا
1/207 موطأ مالك رواية أبي مصعب الزهري كتاب الجمعة باب انتظارالصلاة والمشي إليها