Ka’b ibn ‘Ujrah reported: A man passed by the Prophet, peace and blessings be upon him, and the companions of the Messenger of Allah saw his endurance and vigor. They said, “O Messenger of Allah, if only this man was acting in the way of Allah!” The Prophet said, “If he goes out striving for his small children, he is in the way of Allah. If he goes out striving for his elderly parents, he is in the way of Allah. If he goes out striving for himself to abstain from wrongdoing, he is in the way of Allah. If he goes out vainly and boasting, he is in the way of Satan.”
Source: al-Mu’jam al-Kabīr lil-Ṭabarānī 19/129
Grade: Sahih (authentic) according to Al-Albani
عَنْ كَعْبِ بْنِ عُجْرَة قَالَ مَرَّ عَلَى النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ رَجُلٌ فَرَأَى أَصْحَابُ رَسُولِ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ مِنْ جِلْدِهِ وَنَشَاطِهِ فَقَالُوا يَا رَسُولَ اللهِ لَوْ كَانَ هَذَا فِي سَبِيلِ اللهِ فَقَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِنْ كَانَ خَرَجَ يَسْعَى عَلَى وَلَدِهِ صِغَارًا فَهُوَ فِي سَبِيلِ اللهِ وَإِنْ كَانَ خَرَجَ يَسْعَى عَلَى أَبَوَيْنِ شَيْخَيْنِ كَبِيرَيْنِ فَهُوَ فِي سَبِيلِ اللهِ وَإِنْ كَانَ يَسْعَى عَلَى نَفْسِهِ يُعِفُّهَا فَهُوَ فِي سَبِيلِ اللهِ وَإِنْ كَانَ خَرَجَ رِيَاءً وَمُفَاخَرَةً فَهُوَ فِي سَبِيلِ الشَّيْطَانِ
19/129 المعجم الكبير للطبراني
1428 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع