Abd al-Rahman bin Abi Layla (may Allah have mercy on him) said that Sayyiduna Ali (may Allah be pleased with him) carried out a hadd punishment on a man, and the people began to revile him. So he (may Allah be pleased with him) said: He will not be questioned about this sin of his.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17598