Bulugh al-Maram, Book 10, Hadith 1258 (English)

Abu Hurairah (RAA) narrated that the Messenger of Allah said: "Avert the infliction of the prescribed punishment as long as you find a way out (i.e. to avoid their infliction). Related by Ibn Majah with a weak chain of narrators.

وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ اِدْفَعُوا اَلْحُدُودَ, مَا وَجَدْتُمْ لَهَا مَدْفَعًا } أَخْرَجَهُ اِبْنُ مَاجَهْ, وَإِسْنَادُهُ ضَعِيفٌ (1586)‏ ‏3 ‏- ضعيف.‏ رواه ابن ماجه (2545)‏.‏

sunnah.com

also referenced under: Book 10, Hadith 1219 (In-Book)