We used to say that the Hour will not come until the sky stops sending rain and the earth stops bringing forth vegetation, until fifty women have only one man to look after them, and until a woman passes by a husband and he looks at her and says, "This one once had a man."Hammad mentioned it this way one time, narrating it from Thabit, from Anas, from the Prophet ﷺ without any doubt. He also said on another occasion, from Anas, from the Prophet ﷺ, according to what is reckoned.
حدثنا عفان حدثنا حماد عن ثابت
كنا نتحدث أنه لا تقوم الساعة حتى لا تمطر السماء ولا تنبت الأرض وحتى يكون لخمسين امرأة القيم الواحد وحتى أن المرأة لتمر بالبعل فينظر إليها فيقول لقد كان لهذه مرة رجل ذكره حماد مرة هكذا وقد ذكره عن ثابت عن أنس عن النبي ﷺ لا يشك فيه وقد قال أيضا عن أنس عن النبي ﷺ فيما يحسب
Its isnad is sahih, and the hadith was also graded sahih by Haythami 7/330, and it is found in Bukhari 1/178, no. 81, in Fath al-Bari, in the Book of Knowledge, chapter on the removal of knowledge, with similar wording.