He said, the Messenger of Allah ﷺ went out to the prayer ground on a day of Adha or Fitr. He passed by the women and said, "Women, give in charity, for I have seen that you make up the majority of the people of the Fire."They asked, "Why is that, Messenger of Allah?"He replied, "You curse frequently and you are ungrateful to your husbands..." and so the hadith continues.
قال خرج رسول الله ﷺ في أضحى أو فطر إلى المصلى، فمر على النساء، فقال: يا معشر النساء تصدقن، فإني رأيتكن أكثر أهل النار، فقلن: وبم يا رسول الله؟ قال: تكثرن اللعن، وتكفرن العشير… الحديث.
Bukhari narrated it in the Book of Menstruation (304), and Muslim in the Book of Faith (80), through the route of Saeed bin Abu Maryam, who said, our narrator was Muhammad bin Jafar, who said, I was informed by Zayd bin Aslam, from Iyad bin Abdullah, from Abu Saeed Khudri, and he related it. The wording given is that of Bukhari. Muslim did not mention its wording, but instead referred to the hadith of Ibn Umar , which follows next.