Hadithcore
Hadith #2113670

an-Nasa'i reported it with through another chain, from Ibn 'Abbas (RA) with this wording:

He said, "Divorce her." He replied "I can not endure the desire for her." He said, "Then keep her."

وَأَخْرَجَهُ النَّسَائِيُّ مِنْ وَجْهٍ آخَرَ: عَنِ اِبْنِ عَبَّاسٍ بِلَفْظٍ { قَالَ: طَلِّقْهَا.‏ قَالَ: لَا أَصْبِرُ عَنْهَا.‏ قَالَ: "فَأَمْسِكْهَا } [1]‏

References2 variants
Sunnah.com reference
Book 8, Hadith 157
Arabic/English book reference
Book 8, Hadith 0