Rav Huna, son of Rav Yehoshua, became sick, and Rav Pappa went into his home to inquire about his well-being. He saw that the world was growing weak for Rav Huna, i.e., he was dying. Rav Pappa said to his attendants: Prepare his provisions [zavdata], i.e., his shrouds. In the end, Rav Huna recovered. Rav Pappa was embarrassed to go and see him, as it seemed as if he had decreed Rav Huna’s death. Rav Huna’s friends said to him: What did you see when you were lying there suspended between life and death? He said to them: Yes, it was so, I was truly close to dying, but the Holy One, Blessed be He, said to the heavenly court: Since he does not stand on his rights, i.e., he is ready to waive what is due him, you too should not be exacting with him in his judgment, as it is stated: “He bears [noseh] sin and forgives transgression.” Whose sins does He bear? The sins of one who forgoes his reckonings with others for injustices committed against him.
From this, we have learned that if we will agree to let go of the 'crimes' that others did to us, God will also do it and He will bear our iniquities.
If a person wants to do a good thing but is unable to do so at the moment, in any case, the scripture talks of him as though he did it. And the most important thing is to truly intend to improve our qualities.