The Cow - 2:225
Allah does not hold you responsible for your unintentional oaths, but He holds you responsible for the true intention in your hearts. Allah is Forgiving, Compassionate.
Allah holds us responsible for the evil thoughts that we form in our hearts:
The Cow/2:284
To Allah belongs what is in the heavens and the earth. Whether you reveal what is in you or conceal it, Allah holds you responsible for it. He forgives whom He wills and punishes whom He wills. Allah is all-powerful.
The Women/4:108
They hide from the people, but they cannot hide from Allah. He is with them when they conceive thoughts that He dislikes. Allah encompasses all that they do.
Prophet Hud/11:5
They want to conceal from Him what is in their breasts. Know well that He knows what they conceal and what they reveal, even when they put on their clothes. He is the Knower of secret thoughts.