R. Johanan b. Zakkai explained to R. Joshua, who was mourning over the destroyed Temple and who said that it was now impossible to obtain forgiveness for sins as there were no longer sacrifices, that charity and pious actions atone.
Yochanan ben Zakkai Consoles a Mourning Rabbi After the Temple Falls
Gaster, The Exempla of the Rabbis (1924), No. 198