2 Maccabees 12:43-46 it is about pray for the dead, that they may be loosed from Sins. this regards the OT of the Jews.
Contrary to Roman Catholic dogma,
the Apocrypha should not be considered authentic Scripture, so finding the doctrine of purgatory there would not grant it biblical authority.
However, the passage in 2 Maccabees doesn’t say anything about purgatory, nor does it in any way imply the Roman Catholic dogma.
According to Catholics; Purgatory is only for those who have died in God’s grace. If someone dies while guilty of a
mortal sin for which they have made no
absolution, they die outside of God’s grace and under His wrath. They will not receive purification in purgatory. They will be justly punished in hell. Roman Catholic teaching regards willful idolatry committed in full knowledge of God’s moral law to be a mortal sin. The passage is clear that these were not ignorant pagans. They were Jews who knew that what they were doing was forbidden by God’s law. These men died in unrepentant, willful idolatry and active devotion to false gods. Therefore, on Roman Catholic teaching, they died outside of God’s grace. That they were under God’s wrath is further exemplified by the repeated emphasis on the death of these men as a direct judgment from God on them for their sin.
"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. 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. 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.”
Judas Maccabeus collects money from all the men in his army. They send the money to Jerusalem to buy the appropriate sacrificial animals to make offerings for the atonement of the sin of these fallen soldiers. Why? According to the text, it is because of the expectation of a future resurrection. It is not because these men were presently confined to the sufferings of purgatory and hoping for release. Not only is there no indication that any such consideration ever entered the mind of either Judas or the author of the book, but there is a clear statement of exactly what
was in mind. Judas wanted these men to share in the reward of the righteous on the day of resurrection. He was not considering the present reality of their death and any suffering their souls might currently be enduring. His focus was the future hope of their physical life.
It reports the act of a general who loved his men and believed in the resurrection of the dead, and so he offered atoning sacrifices at the temple in hopes that God might accept them, forgive these men, and grant them eternal life and reward instead of a future of suffering. His hope was not to shorten their stay in some form of purgatory but rather to mediate their release from sin, death, and hell. If this points to any New Testament teaching at all, it points forward to the true and ultimate atoning sacrifice of Jesus Himself, who offered His own life at Jerusalem for the sins of many, even many who had died before He came. This text preserves a Jewish tradition that God might accept a sacrifice from the righteous on behalf of the wicked rebel who can make no offering of his own. In as much as there is any truth to that hope, it is fulfilled in Christ.
Thus, what we find in this old Jewish tradition is not a belief in purgatory. What we find instead is a belief in the possibility of vicarious, substitutionary atonement. Even the apocryphal 2 Maccabees doesn’t teach that the dead can be purged of sin through their own purgatorial suffering. It does express a hope that maybe a righteous person can atone on the helpless sinner’s behalf. That was only fulfilled by Christ.