At school we are taught that people who are good will go to Heaven and people who are bad will go to Hell. So if this is true, doing good deeds such as charity, fasting and worship of God should be our means of salvation from the Hell fire. And doing bad deeds such as murder, rape and stealing will lead us to the Hell fire. And this makes perfect sense. But I cannot find anything in the scripture about doing good deeds or being righteous men/women to attain salvation. Does anyone know if there is mention of attaining salvation through good deeds or being righteous people in the scripture?
2Welcome to MiYodeya Asan. Great to have you learn with us!– mblochNov 22, 2018 at 19:05
6Did you go to a Jewish school? This sounds somewhat like you went to a Christian school– Double AA ♦Nov 22, 2018 at 19:25
See also judaism.stackexchange.com/q/65286/170– msh210 ♦Nov 22, 2018 at 19:27
1There's no salvation in Judaism, everybody gets a share of the World to come, there's no Hell and no Hellfire. The reward is proportional to one's effort and merit. THat's why it is not mentioned.– Al BerkoNov 22, 2018 at 19:50
5@AlBerko That's at best a massive oversimplification. We might not use words like 'Salvation' and 'Hellfire', but there is definitely a concept of Olam Haba and Gehinnom within Judaism.– Salmononius2Nov 22, 2018 at 21:30
According to Jewish thought, if we fulfill God’s will, we will be rewarded for our efforts, and if we sin against God, we will be punished .
"Good deeds" don't cancel bad deeds, and conversely, "bad deeds" don't cancel good deeds . A person is judged for each good deed or misdeed .
 "Ani Ma'amin" (11).
 See Pesachim 118a אין הקב"ה מקפח שכר כל בריה.
 See Rambam in "Iggeres HaSmad":
אבל השם יתברך נפרע מבני אדם על החמורות ועל הקלות, ונותן שכר על כל דבר שעושין. על כן צריך האדם לידע, שכל עבירה שיעשה נפרעין ממנו עליה, וכל מצוה שיעשה מקבל עליה שכר
"God punishes people for the severe and the light [sins], and gives reward for everything they do. Therefore, a person must know that for every sin that he commits, payment will be exacted from him, and any mitzvah that he does, he will receive a reward for it."
2-1. The asker knew about reward and punishment already and was asking only about a scriptural reference therefor. This doesn't answer the question at all.– msh210 ♦Nov 23, 2018 at 6:31
That was PART of the question. The question falsely implied, that mere doing good deeds such as charity, fasting and worship of God should be our means of salvation. My answer intended to dispel that erroneous notion. Good deeds earn us reward, but they do not cancel out bad deeds. Nov 23, 2018 at 16:17
1Quite right, sorry.– msh210 ♦Nov 24, 2018 at 16:42