Sunan Abi Dawud, Hadith 1861

It was reported from 'Abdul-Karim bin Malik Al-Jazari, from 'Abdur-Rahman bin Abi Laila, from Ka'b bin Ujrah, regarding this incident (as narrated in on previous hadith), and he added: "Whichever of these you do, it will suffice."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ الْقَعْنَبِيُّ، عَنْ مَالِكٍ، عَنْ عَبْدِ الْكَرِيمِ بْنِ مَالِكٍ الْجَزَرِيِّ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى، عَنْ كَعْبِ بْنِ عُجْرَةَ، فِي هَذِهِ الْقِصَّةِ زَادَ ‏ "‏ أَىَّ ذَلِكَ فَعَلْتَ أَجْزَأَ عَنْكَ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Hadith 1856 (Hasan)