Inhabitants of Jannah and Hell-fire
Usamah bin Zaid (radi Allahu anhu) reported that the Prophet (sal Allahu alaihi wa sallam) said, “I stood at the gate of Jannah, and (I saw) that the majority of those who entered it are the poor, and the wealthy were kept confined. The inmates of the Fire had been ordered to (enter) the Fire (Hell), and I stood at the gate of Hell and saw that the majority of its inmates are women.”
[Sahih al-Bukhari and Muslim]
The Prophet (sal Allahu alaihi wa sallam) was told about the state of affairs in Jannah and Hell by means of Wahy (Revelation). In some cases, the conditions of the inhabitants of Jannah and Hell were shown to him by means of dreams. The Prophet (sal Allahu alaihi wa sallam) stated that one of the main reasons for a greater number of women in Hell is that they are more ungrateful to their husbands. Women referred to in the Hadith are those who do not follow the Divine injunctions and do not discharge their duty towards Allah.
And Allah Knows Best!