Sahih al-Bukhari, Volume 1, Book 3, Hadith 129 (USC-MSA)

Narrated Abu at-Tufail: The above mentioned Statement of `Ali.

حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى عَنْ مَعْرُوفِ بْنِ خَرَّبُوذٍ عَنْ أَبِي الطُّفَيْلِ عَنْ عَلِيٍّ بِذَلِكَ‏.‏

sunnah.com