Sunan Ibn Majah, Book 20, Hadith 8 (Ibn Majah 2542)

It was narrated from `Ubadah bin Samit that the Messenger of Allah (ﷺ) said:

“Carry out the legal punishments on relatives and strangers, and do not let the fear of blame stop you from carrying out the command of Allah (SWT).”