Word of Apostles in the New Testament claim we‘ll be “tested by fire“ (1 Pet 1:7)
St Paul says if someone builds on the true foundation of Christ but doesn’t care to build well “the person will be saved but only as through fire” ( 1 Cor 3:15)
There’s a king tradition of praying for those who have died coming from the Apostles