2 Maccabees 12:38-45 New Revised Standard Version (NRSV)
Prayers for Those Killed in Battle
38 Then Judas assembled his army and went to the city of Adullam. As the seventh day was coming on, they purified themselves according to the custom, and kept the sabbath there.
39 On the next day, as had now become necessary, Judas and his men went to take up the bodies of the fallen and to bring them back to lie with their kindred in the sepulchres of their ancestors. 40 Then under the tunic of each one of the dead they found sacred tokens of the idols of Jamnia, which the law forbids the Jews to wear. And it became clear to all that this was the reason these men had fallen. 41 So they all blessed the ways of the Lord, the righteous judge, who reveals the things that are hidden; 42 and they turned to supplication, praying that the sin that had been committed might be wholly blotted out. The noble Judas exhorted the people to keep themselves free from sin, for they had seen with their own eyes what had happened as the result of the sin of those who had fallen. 43 He also took up a collection, man by man, to the amount of two thousand drachmas of silver, and sent it to Jerusalem to provide for a sin offering. In doing this he acted very well and honorably, taking account of the resurrection. 44 For if he were not expecting that those who had fallen would rise again, it would have been superfluous and foolish to pray for the dead. 45 But if he was looking to the splendid reward that is laid up for those who fall asleep in godliness, it was a holy and pious thought. Therefore he made atonement for the dead, so that they might be delivered from their sin.