Abdullah bin Masud reported,

If the people of knowledge had safeguarded knowledge and placed it with those worthy of it, they would have become the leaders of their age through it. But instead they offered it to the people of worldly power in order to gain from their worldly goods, and so they were debased in their eyes.I heard your Prophet ﷺ say, "Whoever makes his concerns into a single concern, the concern of the hereafter, Allah will suffice him in the concerns of his worldly life. But whoever lets his concerns scatter across the various states of this world, Allah will not care in which of its valleys he perishes."

Ibn Majah 257

Daif

حدثنا علي بن محمد والحسين بن عبد الرحمن قالا حدثنا عبد الله بن نمير عن معاوية النصري عن نهشل عن الضحاك عن الأسود بن يزيد

عن عبد الله بن مسعود قال

لو أن أهل العلم صانوا العلم ووضعوه عند أهله لسادوا به أهل زمانهم ولكنهم بذلوه لأهل الدنيا لينالوا به من دنياهم فهانوا عليهم سمعت نبيكم ﷺ يقول من جعل الهموم هما واحدا هم آخرته كفاه الله هم دنياه ومن تشعبت به الهموم في أحوال الدنيا لم يبال الله في أي أوديتها هلك

ابن ماجه 257ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
Benefiting from knowledge and acting upon it
Numbering
Darussalam 257
Ibn Majah 257