When a prophet speaketh in the name of the LORD, if the thing follow not, nor come to pass, that is the thing which the LORD hath not spoken
No contradiction, in the case when God’s word is recorded as “I was going to, but now I will not and will do this instead”, demonstrating His free will. This has to do with things that God never said in the first place.