Zayd bin Thabit came out from Marwan's place at midday. I said to myself, "He would not have summoned him at this hour except to ask him about something." So I asked him, and he replied, "He asked us about matters we had heard from the Messenger of Allah ﷺ. I heard the Messenger of Allah ﷺ say, 'Whoever has this world as his chief concern, Allah will scatter his affairs, place poverty before his eyes, and nothing of this world will come to him except what has been decreed for him. But whoever has the Hereafter as his intention, Allah will gather his affairs for him, place contentment in his heart, and the world will come to him submissively.'"
خرج زيد بن ثابت من عند مروان بنصف النهار، قلت: ما بعث إليه هذه الساعة إلا لشيء يسأل عنه، فسألته، فقال: سألنا أشياء سمعناها من رسول الله ﷺ، سمعت رسول الله ﷺ، يقول: من كانت الدنيا، همه فرق الله عليه أمره، وجعل فقره بين عينيه، ولم يأته من الدنيا إلا ما كتب له، ومن كانت الآخرة نيته، جمع الله له أمره، وجعل غناه في قلبه، وأتته الدنيا وهي راغمة.
Ibn Majah (4105), Ahmad (2159), and Ibn Hibban (680), who graded it sahih, all narrated it through the route of Shubah, from Umar bin Sulayman -one of the descendants of Umar bin Khattab-, who said, I heard Abdul-Rahman bin Aban bin Uthman bin Affan narrating from his father, who said, then he mentioned it. Its isnad is sahih. Umar bin Sulayman is Ibn Asim bin Umar bin Khattab.