Yunus bin ‘Abdul A‘laa (rahimahullah) mentions the following:
Imaam Shaafi‘ee (rahimahullah) once said to me, “You will never be able to please and satisfy every person, and there is no way that you will be able to remain safe from the criticism and negative remarks of every person. Hence, do not be concerned about the negative remarks of people, but concern yourself with that which will benefit you and firmly hold onto it.”
(Siyar A’laam min Nubalaa 10/89)