It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Do not please anyone by incurring the displeasure of Allah, do not praise anyone for the bounty of Allah, and do not blame anyone for what Allah has not given you; for the provision of Allah is not driven to you by the greed of a greedy person, nor is it turned away from you by the dislike of one who dislikes it. Indeed, Allah Almighty, by His fairness and justice, has placed comfort and joy in contentment and certainty, and has placed worry and grief in discontent."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10468