Sahih Muslim | Book 36 | Hadith Number 6606

Narrated by Abu Sa'id Khudri
Abu Sa'id Khudri reported that Allah's Messenger (may peace be upon him) said: 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 Israi'l 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.