سَلاَمٌ عَلَيْكَ أَمَّا بَعْدُ فَإِنِّى سَمِعْتُ رَسُولَ اللَّهِ - صلى الله عليه وسلم - يَقُولُ: "مَنِ الْتَمَسَ رِضَاءَ اللَّهِ بِسَخَطِ النَّاسِ كَفَاهُ اللَّهُ مُؤْنَةَ النَّاسِ وَمَنِ الْتَمَسَ رِضَاءَ النَّاسِ بِسَخَطِ اللَّهِ وَكَلَهُ اللَّهُ إِلَى النَّاسِ." وَالسَّلاَمُ عَلَيْكَ.
`Aishah (May Allah be pleased with him) narrated that Allah's Messenger (May the peace and blessing of Allah be upon him) said: "Whoever seeks Allah's pleasure at the cost of men's displeasure, will win the pleasure of Allah and Allah will cause men to be pleased with him. Whoever seeks to please men at the cost of Allah's displeasure, will win the displeasure of Allah, and Allah will cause men to be displeased with Him." [Reported by Ibn Hibban in his Sahih]
“Salam untukmu. Amma Ba’du. Sesungguhnya aku mendengar Rasulullah shallallahu ‘alaihi wa sallam bersabda,‘Barang siapa mencari redha Allah dengan membuat manusia murka, maka Allah akan bereskan urusannya dengan sesama manusia. Tetapi barang siapa mencari redha manusia dengan membuat Allah murka maka Allah akan serahkan orang tersebut kepada manusia’ Wassalamu ‘alaika.” (HR. Tirmidzi. Dalam As Silsilah Ash Sahihah, Syaikh Al Albani mengatakan bahwa hadith ini sahih)
The Prophet informs us in this Hadith that whoever sought Allah's Pleasure by obeying His Commands and abstaining from all of that which He has prohibited, without caring whether or not he pleased others and without paying heed to their insults and oppression, will achieve Allah's Pleasure and He will place love for that person in the hearts of mankind; but as for him who tried to please the people at the expense of his Religion, he will incur the Wrath of Allah, Most Glorified, Most High, and He will place hate of that person in the hearts of the people as a punishment for him because of his bad intentions - one only has to look at the present situation in the Muslim world to see the truth of this.
p/s: If you're doing something, or refraining from something for the sake of Allah, you have no reason whatsoever to despair despite the trials and tribulations you run into..for Allah's pleasure is the one that counts..wallahua'lam