Hadithcore
Hadith #2115080

Al-Baihaqi transmitted on the authority of 'Ali (RAA) that he said, 'Avert the prescribed punishment by rejecting doubtful evidence.'

وَرَوَاهُ اَلْبَيْهَقِيُّ: عَنْ عَلِيٍّ ‏- رضى الله عنه ‏- (مِنْ)‏ قَوْلِهِ بِلَفْظِ: { ادْرَأُوا اَلْحُدُودَ بِالشُّبُهَاتِ } [1]‏

References2 variants
Sunnah.com reference
Book 10, Hadith 17
Arabic/English book reference
Book 10, Hadith 1260