A man came to the Prophet ﷺ and said, "My wife does not refuse the hand of anyone who touches her."The Prophet ﷺ said, "Divorce her, if you wish."The man said, "I fear that my heart will keep longing for her."The Prophet ﷺ said, "Then keep her and enjoy her company."
أخبرنا الحسين بن حريث قال حدثنا الفضل بن موسى قال حدثنا الحسين بن واقد عن عمارة بن أبي حفصة عن عكرمة
جاء رجل إلى النبي ﷺ فقال إن امرأتي لا تمنع يد لامس فقال غربها إن شئت قال إني أخاف أن تتبعها نفسي قال استمتع بها
[Its chain is sahih] Abu Dawud narrated it in "Nikah," chapter "The prohibition against marrying women who have not borne children," hadith no. 2049, from Husayn bin Hurayth Marwazi, with this wording. It is also found in Kubra, hadith no. 5658.Ahmad bin Hanbal said, "This, in our view, can only mean that she is given something from his wealth, for the Prophet ﷺ would not have commanded him to keep her while she was committing adultery."See Nayl Maqsud.