In 2 Maccabees 12:40-46, it says,
And they found under the coats of the slain some of the donaries of the idols of Jamnia, which the law forbiddeth to the Jews: so that all plainly saw, that for this cause they were slain. 41 Then they all blessed the just judgment of the Lord, who had discovered the things that were hidden. 42 And so betaking themselves to prayers, they besought him, that the sin which had been committed might be forgotten. But the most valiant Judas exhorted the people to keep themselves from sin, forasmuch as they saw before their eyes what had happened, because of the sins of those that were slain. 43 And making a gathering, he sent twelve thousand drachms of silver to Jerusalem for sacrifice to be offered for the sins of the dead, thinking well and religiously concerning the resurrection, 44 (For if he had not hoped that they that were slain should rise again, it would have seemed superfluous and vain to pray for the dead,) 45 And because he considered that they who had fallen asleep with godliness, had great grace laid up for them. 46 It is therefore a holy and wholesome thought to pray for the dead, that they may be loosed from sins
How is this passage to be understood, especially vs 46?
It is therefore a holy and wholesome thought to pray for the dead, that they may be loosed from sins.