It is not permissible to please the subjects by displeasing Allah
➊ Aisha (may Allah be pleased with her) narrates that the Messenger of Allah ﷺ said:
من التمس رضا الله بسخط الناس رضى الله عنه وأرضى عنه الناس ، ومن التمس رضا الناس بسخط الله سخط الله عليه ، وأسخط عليه الناس
“Whoever seeks Allah’s pleasure despite the displeasure of the people, Allah the Exalted becomes pleased with him and also makes the people pleased with him. And whoever pleases the people despite the displeasure of Allah, Allah the Exalted becomes displeased with him and also makes the people displeased with him.”
[Sahih li-ghayrihi (authentic due to supporting evidence): Sahih al-Targhib: 2250, Kitab al-Qada’: Bab Tarhib al-Hakim wa-ghayrihi min Irda’ al-Nas bima Yaskhatu Allah ‘Azza wa-Jalla, Ibn Hibban in his Sahih: 276]
➋ In one narration the words are that the Messenger of Allah ﷺ said:
من أرضى الله بسخط الناس كفاه الله ومن أسخط الله برضا الناس وكله الله إلى الناس
“Whoever pleases Allah despite the displeasure of the people, Allah the Exalted will suffice him, and whoever displeases Allah by seeking the pleasure of the people, Allah the Exalted will leave him to the people.”
[Bayhaqi: 890, in Kitab al-Zuhd al-Kabir, al-Targhib wa al-Tarhib: 3329]