Sayyiduna Abu Hurairah (may Allah be pleased with him) narrated from the Messenger of Allah (peace and blessings be upon him), he said: "The eyes commit adultery (by looking), the legs and feet commit adultery, and the private part either confirms or denies it."
Related hadith on this topic