Qais bin Talq narrates from his father: He asked the Prophet Muhammad (peace be upon him) about a person who touches his private part during prayer. The Prophet (peace be upon him) said: There is no harm in it; it is a part of your body.
Hadith Referenceصحیح ابن حبان / كتاب الطهارة / 1121
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» - أيضا -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده قوي. وانظر (1119).