Psa 32:2 Blessed is the man unto whom the LORD imputeth not iniquity, and in whose spirit there is no guile.
God does it all. Two words here that are very important. Imputeth and guile.
A primitive root; properly to plait or interpenetrate, that is, (literally) to weave or (generally) to fabricate; figuratively to plot or contrive (usually in a malicious sense); hence (from the mental effort) to think, regard, value, compute: - (make) account (of), conceive, consider, count, cunning (man, work, workman), devise, esteem, find out, forecast, hold, imagine, impute, invent, be like, mean, purpose, reckon (-ing be made), regard, think.
From H7411; remissness, treachery: - deceit (-ful, -fully), false, guile, idle, slack, slothful.