The Prophet ﷺ said something similar, meaning regarding rubbing off semen.
حدثنا يحيى حدثنا شعبة عن الحكم عن إبراهيم عن همام بن الحارث
أن النبي ﷺ نحو هذا يعني في فرك المني
No references are available.
Its isnad is sahih, and it is similar to the one before the previous one.