The Messenger of Allah ﷺ went out to the prayer ground on either Eid al-Adha or Eid al-Fitr. He passed by the women and said, "Women, give in charity, for I have been shown 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 are ungrateful to your husbands…" and the hadith continues.
خرج رسول الله ﷺ في أضحى أو في فطر إلى المصلى، فمر على النساء، فقال: يا معشر النساء تصدقن، فإني أريتكن أكثر أهل النار فقلن: وبم يا رسول الله؟ قال: تكثرن اللعن، وتكفرن العشير… الحديث.
Bukhari narrated it in the chapter on menstruation (304), and Muslim in the chapter on faith (80), both through Saeed bin Abu Maryam, who said, Muhammad bin Jafar informed us, who said, Zayd, that is Ibn Aslam, informed me, from Iyad bin Abdullah, from Abu Saeed Khudri, and he related it.The wording given is Bukhari's, for Muslim did not present his own wording for this chain, but instead referred to another hadith.