It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) concerning the saying of Allah Almighty, "He knows the treachery of the eyes," that he said: "That is, when you look at someone (who is not your mahram), Allah knows whether you intend treachery or not. 'And what the breasts conceal' means: when you get the power over her, will you commit adultery with her or not (Allah knows even this matter of the heart). Shall I not tell you the verse that follows it? 'And Allah judges with truth', meaning He has the power to recompense good with good and evil with evil. 'Indeed, Allah is the All-Hearing, the All-Seeing.'"
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from al-A'mash except al-Husayn bin Waqid."
Related hadith on this topic