Ez 3:20, God forgets righteousness. In the NT, faith is counted as righteousness.
Ezekiel 3:17-21 KJV
17)
Son of man, I have made thee a watchman unto the house of Israel: therefore hear the word at my mouth, and give them warning from me.
18) When I say unto the wicked, Thou shalt surely die; and thou givest him not warning, nor speakest to warn the wicked from his wicked way, to save his life; the same wicked man shall die in his iniquity; but his blood will I require at thine hand.
19) Yet if thou warn the wicked, and he turn not from his wickedness, nor from his wicked way, he shall die in his iniquity; but thou hast delivered thy soul.
20) Again, When a righteous man doth turn from his righteousness, and commit iniquity, and I lay a stumblingblock before him, he shall die: because thou hast not given him warning, he shall die in his sin, and his righteousness which he hath done shall not be remembered; but his blood will I require at thine hand.
21) Nevertheless if thou warn the righteous man, that the righteous sin not, and he doth not sin, he shall surely live, because he is warned; also thou hast delivered thy soul.
This is fully in keeping with the covenant of Law God made with Israel.
Leviticus 18:1-5 KJV
1) And the LORD spake unto Moses, saying,
2) Speak unto the children of Israel, and say unto them, I am the LORD your God.
3) After the doings of the land of Egypt, wherein ye dwelt, shall ye not do: and after the doings of the land of Canaan, whither I bring you, shall ye not do: neither shall ye walk in their ordinances.
4) Ye shall do my judgments, and keep mine ordinances, to walk therein: I am the LORD your God.
5) Ye shall therefore keep my statutes, and my judgments:
which if a man do, he shall live in them: I am the LORD.
Galatians 3:11-12 KJV
11) But that no man is justified by the law in the sight of God, it is evident: for, The just shall live by faith.
12) And
the law is not of faith: but, The man that doeth them shall live in them.
In God's covenant with Israel,
Exodus 19:3-8 KJV
3) And Moses went up unto God, and the LORD called unto him out of the mountain, saying, Thus shalt thou say to the house of Jacob, and tell the children of Israel;
4) Ye have seen what I did unto the Egyptians, and how I bare you on eagles' wings, and brought you unto myself.
5) Now therefore, if ye will obey my voice indeed, and keep my covenant, then ye shall be a peculiar treasure unto me above all people: for all the earth is mine:
6) And ye shall be unto me a kingdom of priests, and an holy nation. These are the words which thou shalt speak unto the children of Israel.
7) And Moses came and called for the elders of the people, and laid before their faces all these words which the LORD commanded him.
8) And all the people answered together, and said, All that the LORD hath spoken we will do. And Moses returned the words of the people unto the LORD.
God promised blessing for obedience. He gave many commandments, and declared that the one who does them will live, and if you stop, it won't matter that you had, only that you stopped. And if you were not, you would die, but if you started, you would live. That was the Law covenant God made with Jacob's children.
Much love!