2 Maccabees 12, the text alleged for purgatory, speaks of dead idolaters and of the resurrection
Judas Maccabeus makes a collection and sends it to Jerusalem so that a sacrifice may be offered for the dead soldiers, in whose clothes amulets of idols had been found. The author praises the act because he was mindful of the resurrection (2 Macc 12:39-45).
It is the main text in favour of purgatory, and it is in a book that Jerome left out of the canon. Even read as Scripture, it speaks of men who died in the sin of idolatry and of the resurrection, not of saved souls being purified. Outside that book, the doctrine of Florence has no text.
Source