It is reported that Khālid b. Maʿdān – Allāh have mercy him – said:
Whoever seeks praise by [saying or doing] what goes against Allāh, Allāh will turn those praises back on him to blame; and whoever is bold enough to [say or do] what brings blame [from people but] is in conformity to the truth, Allāh will turn that blame into praise.
Abū Dāwūd, Al-Zuhd #494.