Al-Kāfi - Volume 1 > Chapter on Those who use their Knowledge to Fill their Stomach and are Boastful for it
Hadith #3

3ـ عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنِ الْقَاسِمِ بْنِ مُحَمَّدٍ الاصْبَهَانِيِّ عَنِ الْمِنْقَرِيِّ عَنْ حَفْصِ بْنِ غِيَاثٍ عَنْ أَبِي عَبْدِ الله (عَلَيْهِ السَّلام) قَالَ مَنْ أَرَادَ الْحَدِيثَ لِمَنْفَعَةِ الدُّنْيَا لَمْ يَكُنْ لَهُ فِي الاخِرَةِ نَصِيبٌ.

3. Ali ibn Ibrahim has narrated from his father from al-Qasim ibn Muhammad al-Isbahani from al-Minqari from Hafs ibn Ghiyath from abu ‘Abdallah (a.s.) who has said the following. “Whoever would want al-Hadith for the worldly gains he will have no share for it in the next life.”