2 Maccabees 12:34-45

34 When they joined battle, it happened that a few of the Jews fell.
35 But a certain Dositheus, one of Bacenor's men, who was on horseback and was a strong man, caught hold of Gorgias, and grasping his cloak was dragging him off by main strength, wishing to take the accursed man alive, when one of the Thracian horsemen bore down upon him and cut off his arm; so Gorgias escaped and reached Marisa.
36 As Esdris and his men had been fighting for a long time and were weary, Judas called upon the Lord to show himself their ally and leader in the battle.
37 In the language of their fathers he raised the battle cry, with hymns; then he charged against Gorgias' men when they were not expecting it, and put them to flight.
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 they kept the sabbath there.
39 On the next day, as by that time it had become necessary, Judas and his men went to take up the bodies of the fallen and to bring them back to lie with their kinsmen in the sepulchres of their fathers.
40 Then under the tunic of every 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 why 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 prayer, beseeching that the sin which had been committed might be wholly blotted out. And the noble Judas exhorted the people to keep themselves free from sin, for they had seen with their own eyes what had happened because 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, that they might be delivered from their sin.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.