This hadith was narrated by at-Tirmidhi (2465) from Anas ibn Maalik, who said: The Messenger of Allah (blessings and peace of Allah be upon him) said: “Whoever is focused on the Hereafter, Allah will make him feel content with his lot and grant him peace of mind, and his provision and worldly gains will come to him regardless (of circumstances, obstacles or people). Whoever is focused only on this world, Allah will make him fear poverty constantly and confound his affairs, and he will not get anything of this world except that which has been decreed for him.”
It was also narrated by Ibn Maajah (4105) from Zayd ibn Thaabit, who said: I heard the Messenger of Allah (blessings and peace of Allah be upon him) say: “Whoever is focused only on this world, Allah will confound his affairs and make him fear poverty constantly, and he will not get anything of this world except that which has been written for him. Whoever is focused on the Hereafter, Allah will grant him peace of mind and make him feel content with his lot, and his provision and worldly gains will come to him regardless (of circumstances, obstacles or people).” Classed as saheeh by al-Albaani in Silsilat al-Ahaadeeth as-Saheehah (2/634).
It was also narrated by Ibn Maajah (4105) from Zayd ibn Thaabit, who said: I heard the Messenger of Allah (blessings and peace of Allah be upon him) say: “Whoever is focused only on this world, Allah will confound his affairs and make him fear poverty constantly, and he will not get anything of this world except that which has been written for him. Whoever is focused on the Hereafter, Allah will grant him peace of mind and make him feel content with his lot, and his provision and worldly gains will come to him regardless (of circumstances, obstacles or people).” Classed as saheeh by al-Albaani in Silsilat al-Ahaadeeth as-Saheehah (2/634).