Around the time of the Pharisees and early rabbis that teachings about afterlife were developed further.
Early rabbis taught that those who lived according to the halakhah (scriptures, including laws for living taken from oral and written Torah) would be rewarded in the world to come = Olam Ha-Ba in Hebrew.