ذِكْرُ الْإِخْبَارِ عَمَّا يَجِبُ عَلَى الْمَرْءِ مِنْ حَفِظِ نَفْسِهِ عَنِ الدُّنْيَا وَآفَاتِهَا عِنْدَ انْبِسَاطِهِ فِي الْأَمْوَالِ
The world is sweet and green (alluring) and verily Allah is going to install you as vicegerent in it in order to see how you act. So avoid the allurement of women: verily, the first trial for the people of Isra'il was caused by women. And in the hadith transmitted on the authority of Ibn Bashshar the words are:" So that He should see how you act." (Using translation from Muslim 2742)
عَنِ النَّبِيِّ ﷺ قَالَ «إِنَّ الدُّنْيَا خَضِرَةٌ حُلْوَةٌ وَإِنَّ اللَّهَ سَيُخْلُفُكُمْ فِيهَا لِيَنْظُرَ كَيْفَ تَعْمَلُونَ فَاتَّقُوا الدُّنْيَا وَاتَّقُوا النِّسَاءَ فَإِنَّ أَوَّلَ فِتْنَةِ بَنِي إِسْرَائِيلَ كَانَتِ النِّسَاءَ»