[Machine] He asked the Prophet ﷺ or heard a man asking him. He said, "While I was praying, I scratched my thigh and my finger touched my private part." The Prophet ﷺ said, "It is only a part of you and what is apparent is the condition of the one who scratches his thigh, and his hand touched his private part that only the back of his hand would be affected. And Allah knows best."
أَنَّهُ سَأَلَ النَّبِيَّ ﷺ أَوْ سَمِعَ رَجُلًا يَسْأَلُهُ فَقَالَ بَيْنَمَا أَنَا أُصَلِّي فَذَهَبْتُ أَحُكُّ فَخِذِي فَأَصَابَتْ يَدِي ذَكَرِي فَقَالَ النَّبِيُّ ﷺ إِنَّمَا هُوَ مِنْكَ وَالظَّاهِرُ مِنْ حَالِ مَنْ يَحُكُّ فَخِذَهُ وَأَصَابَتْ يَدُهُ ذَكَرَهُ أَنَّهُ إِنَّمَا يُصِيبُهُ بِظَهْرِ كَفِّهِ وَاللهُ أَعْلَمُ