Job acknowledged man's responsibilty to God for his thoughts..

" Job... offered up burnt sacrifices..... ; for, said Job,
" maybe my sons have sinned and cursed God in their heart. "
{ Job 1:5 }

Wllful contemplation of a wrong course could in itself be viewed by Jehovah as a sin.
--- Compare Exodus 20:17---