The answer is very obvious
Rasulullah P.B.U.H said, “He who displeased Allah for seeking the pleasure of people, Allah is displeased with him and those people are also displeased, for pleasing whom he had earned Allah’s displeasure. And he who pleases Allah, although by it he displeased people, Allah is pleased with him, and also those people whom he had displeased for pleasing Allah become pleased with him. Allah makes him splendid and his speech and acts in the eyes of others beautiful.” [Tabarani]