Zayd ibn Thabit reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever is concerned about the world, Allah will disorder his affairs, make poverty appear before his eyes, and he will not get anything from the world but what has been decreed for him. Whoever is concerned about the Hereafter, Allah will settle his affairs, make him content in his heart, and the world will reluctantly come to him.”
Source: Sunan Ibn Mājah 4105
Grade: Sahih (authentic) according to Al-Albani
عَنْ زَيْدِ بْنِ ثَابِتٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ كَانَتْ الدُّنْيَا هَمَّهُ فَرَّقَ اللَّهُ عَلَيْهِ أَمْرَهُ وَجَعَلَ فَقْرَهُ بَيْنَ عَيْنَيْهِ وَلَمْ يَأْتِهِ مِنْ الدُّنْيَا إِلَّا مَا كُتِبَ لَهُ وَمَنْ كَانَتْ الْآخِرَةُ نِيَّتَهُ جَمَعَ اللَّهُ لَهُ أَمْرَهُ وَجَعَلَ غِنَاهُ فِي قَلْبِهِ وَأَتَتْهُ الدُّنْيَا وَهِيَ رَاغِمَةٌ
4105 سنن ابن ماجه كتاب الزهد باب الهم بالدنيا
6516 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع