Anas bin Malik reported,

The Messenger of Allah ﷺ said, "Whoever makes the Hereafter his main concern, Allah places contentment in his heart, gathers his affairs together for him, and the world comes to him reluctantly. But whoever makes the world his main concern, Allah places poverty before his eyes, scatters his affairs, and nothing of the world comes to him except what has been decreed for him."

Tirmidhi 2465

Daif

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

عن أنس بن مالك قال

قال رسول الله ﷺ من كانت الآخرة همه جعل الله غناه في قلبه وجمع له شمله وأتته الدنيا وهي راغمة ومن كانت الدنيا همه جعل الله فقره بين عينيه وفرق عليه شمله ولم يأته من الدنيا إلا ما قدر له

الترمذي 2465ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Description of the Resurrection, softening of hearts, and piety from the Messenger of Allah ﷺ
Chapter
Calamity, he whose concern is the Hereafter, and the son of Adam devote yourself to My worship
Numbering
Darussalam 2465
Tirmidhi 2465