the Prophet said: "Whoever touches his penis, then he is not to pray until he performs Wudu"
Jami` at-Tirmidhi Book 1, Hadith 82