Aisha reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever seeks the pleasure of Allah by the displeasure of people, Allah will suffice him against the people. Whoever seeks the pleasure of people by the displeasure of Allah, Allah will leave him to the patronage of the people.”
Source: Sunan al-Tirmidhī 2414
Grade: Sahih (authentic) according to Al-Albani
عَنْ عَائِشَةَ قَالَتْ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ الْتَمَسَ رِضَا اللَّهِ بِسَخَطِ النَّاسِ كَفَاهُ اللَّهُ مُؤْنَةَ النَّاسِ وَمَنْ الْتَمَسَ رِضَا النَّاسِ بِسَخَطِ اللَّهِ وَكَلَهُ اللَّهُ إِلَى النَّاسِ
2414 سنن الترمذي كتاب الزهد باب منه
6097 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع