The Prophet ﷺ said, "This world is sweet and green, and Allah has placed you as successors in it to see how you will act. So beware of the world and beware of women, for the first trial of the Children of Israil was through women."In the narration of Ibn Bashshar, the wording is, "so that He may see how you will act."
حدثنا محمد بن المثنى ومحمد بن بشار قالا حدثنا محمد بن جعفر حدثنا شعبة عن أبي مسلمة قال سمعت أبا نضرة يحدث
عن النبي ﷺ قال إن الدنيا حلوة خضرة وإن الله مستخلفكم فيها فينظر كيف تعملون فاتقوا الدنيا واتقوا النساء فإن أول فتنة بني إسرائيل كانت في النساء وفي حديث ابن بشار لينظر كيف تعملون