It is also reported from Zayd bin Thabit that he heard the Messenger of Allah saying,
مَنْ كَانَتِ الدُّنْيَا هَمَّهُ فَرَّقَ اللهُ عَلَيْهِ أَمْرَهُ وَجَعَلَ فَقْرَهُ بَيْنَ عَيْنَيْهِ وَلَمْ يَأْتِهِ مِنَ الدُّنْيَا إِلاَّ مَا كُتِبَ لَهُ وَمَنْ كَانَتِ الاْخِرَةُ نِيَّتَهُ جَمَعَ لَهُ أَمْرَهُ وَجَعَلَ غِنَاهُ فِي قَلْبِهِ وَأَتَتْهُ الدُّنْيَا وَهِيَ رَاغِمَة
Whoever makes the worldly life his major concern, then Allah will scatter his situation for him (i.e. make it difficult) and his poverty will be placed between his eyes. He will not get from this world anything except that which has already been written for him.
Whoever makes the Hereafter his intention, then his situation will be gathered for him (i.e. made easy) and his wealth will be placed in his heart. The worldly life will come to him anyway (in spite of his not seeking it).
It is also reported from Zayd bin Thabit that he heard the Messenger of Allah saying,
مَنْ كَانَتِ الدُّنْيَا هَمَّهُ فَرَّقَ اللهُ عَلَيْهِ أَمْرَهُ وَجَعَلَ فَقْرَهُ بَيْنَ عَيْنَيْهِ وَلَمْ يَأْتِهِ مِنَ الدُّنْيَا إِلاَّ مَا كُتِبَ لَهُ وَمَنْ كَانَتِ الاْخِرَةُ نِيَّتَهُ جَمَعَ لَهُ أَمْرَهُ وَجَعَلَ غِنَاهُ فِي قَلْبِهِ وَأَتَتْهُ الدُّنْيَا وَهِيَ رَاغِمَة
Whoever makes the worldly life his major concern, then Allah will scatter his situation for him (i.e. make it difficult) and his poverty will be placed between his eyes. He will not get from this world anything except that which has already been written for him.
Whoever makes the Hereafter his intention, then his situation will be gathered for him (i.e. made easy) and his wealth will be placed in his heart. The worldly life will come to him anyway (in spite of his not seeking it).