Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings be upon him) said:
“Whoever acquires knowledge by which the pleasure of Allah can be attained, but he acquires it only for some worldly benefit, then on the Day of Resurrection he will not even smell the fragrance of Paradise.”
This narration is also transmitted with another chain of narration.