Deeds are Judged by Their Intentions
Question :
I donated some money at work to a worthy cause, but only because I was afraid of embarrassing myself in front of my immediate supervisor? If the matter were in my hands, I wouldn't have given even half a penny. Will I be rewarded for this donation just as if I had given it with a pleased heart? Please support your answer with a proof?
Answer:
If the matter is as you described it, you will not be rewarded because you did not intend Allah's pleasure by giving that donation; rather, you gave it for your supervisor because you were afraid of him. The Messenger of Allah in an authentic Hadith, said:
"Deeds are by their intentions; indeed, every person will get what he intended."
Source:
The Permanent Committee
Fatawa Islamiyah, Vol. 8 Page 104