TABARANI 17760:
from ʿĀʾish b. Anas —
[Machine] Ali ibn Abi Talib asked al-Miqdad to ask the Messenger of Allah about a man who plays with his wife and talks to her until he ejaculates. If it were not for the fact that I feel shy towards him and that his daughter is under me, I would have asked him myself. al-Miqdad asked him, and the Messenger of Allah said, "He should wash his private part, then perform ablution, and then sprinkle his genitals."
الطبراني ١٧٧٦٠:
عن عاءش بن انس —
عَلِيُّ بْنُ أَبِي طَالِبٍ لِلْمِقْدَادِ سَلْ لِي رَسُولَ اللهِ ﷺ عَنْ رَجُلٍ يُلَاعِبُ امْرَأَتَهُ ويُكَلِّمُهَا فَيُمْذِي فَلَوْلَا أَنِّي أَسْتَحِيِي مِنْهُ وَأَنَّ ابْنَتَهُ تَحْتِي لَسَأَلْتُهُ فَسَأَلَهُ الْمِقْدَادُ فَقَالَ رَسُولُ اللهِ ﷺ «لِيَغْسِلْ ذَكَرَهُ ثُمَّ لِيَتَوَضَّأْ ثُمَّ لِيَنْضَحْ فَرْجَهُ»
hadithunlocked.com