what does the bible say?
God absolutely cannot sin. This does not mean that He can but doesn’t. It means that He is incapable of sinning. The theological word for this is “impeccability,” and it means that He is fundamentally holy, without sin.
Some have argued that if there’s something God can’t do, He is not really God (since God can do “anything”). But that is wordplay, akin to asking, "Can a bachelor be married." God can do all that is logically possible, and it is impossible to contradict His own perfectly righteous, holy nature (
Leviticus 19:2; Isaiah 6:3; Psalm 92:15b). "Sin” is not a thing; it’s moral corruption. God is not morally corrupt, so He has no sin.
For example, God cannot lie (Titus 1:2; Hebrews 6:18), does not need to repent (Numbers 23:19; 1 Samuel 15:29), does not have sinful thoughts (Jeremiah 7:31), and cannot look at evil (Habakkuk 1:13; Psalm 5:4). Additionally, He cannot be tempted by sin (James 1:13), is light with no darkness (sin) in Him (1 John 1:5), and has no unrighteousness in Him (Psalm 92:15). Recognizing God cannot sin reassures us of His trustworthy promises, just judgments, and consistent mercy. Though we fail and fall, He never will.