Noah's wife was not a believer with him, so she did not join him; neither did one of Noah's sons, who was secretly a disbeliever but had pretended faith in front of Noah. Likewise most of the people were disbelievers and did not go on board.
The scholars (Ulama) hold different opinions on the number of those who were with Noah on the ship. Ibn Abbas stated that ther were eighty believers, while Ka'ab Al-Ahbar held that there were seventy-two. Others claimed that there were ten believers with Noah.
Related Quran Ayaaths of this Hadith.
Surah 6 : Ayah 84 Surah 4 : Ayah 163 Surah 11 : Ayah 25 Surah 11 : Ayah 32 Surah 11 : Ayah 36 Surah 11 : Ayah 40"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari