Al-Ilmam bi-Ahadith al-Ahkam 66
وَرَوَى قيس بن طلق، عَن أَبِيه، قَالَ: خرجنَا وَفْدًا حَتَّى قدمنَا عَلَى رَسُول الله ﷺ فَبَايَعْنَاهُ، وصلينا مَعَه، فَلَمَّا قَضَى الصَّلَاة؛ جَاءَهُ رجل كَأَنَّهُ بدوي فَقَالَ: يَا رَسُول الله، مَا ترَى فِي رجل مسَّ ذكره وَهُوَ فِي الصَّلَاة، فَقَالَ: " وَهل وَهُوَ إِلَّا مُضْغَة مِنْك، أَو بضعَة مِنْك ". أخرجه أَبُو دَاوُد، وَصَححهُ بَعضهم، وَتكلم فِيهِ غَيره.
Qays ibn Talq narrated, from his father, who said: We set out as a delegation until we came to the Messenger of Allah ﷺ, pledged allegiance to him and prayed with him. When he had finished the prayer, a man who seemed to be a Bedouin came to him and said: "O Messenger of Allah, what do you think of a man who touches his private part while he is in the prayer?" He said: "Is it anything but a piece of flesh of yours," or "a part of you?" Abu Dawud reported it; some graded it sahih and others criticised it.