They were justified by faith in God but they were not cleared of their guilt.
Ex 34:6 And the Lord passed by before him, and proclaimed, The Lord, The Lord God, merciful and gracious, longsuffering, and abundant in goodness and truth, 7 Keeping mercy for thousands, forgiving iniquity and transgression and sin, and that will by no means clear the guilty; visiting the iniquity of the fathers upon the children, and upon the children's children, unto the third and to the fourth generation.
Hebrews 9:22
And almost all things are by
the law purged with
blood; and without
shedding of blood is no remission.
It takes the blood of Christ to wash away sins and he came to do that in the beginning of the 5th Millennium.
Re 1:5 And from Jesus Christ, who is the faithful witness, and the first begotten of the dead, and the prince of the kings of the earth. Unto him that loved us, and washed us from our sins in his own blood,
It is not okay for you to be this wrong about salvation. Your teachers are leading you astray.