If both intention and action are required for the acceptance of a good deed, then how does the hadeeth of the prostitute who fed the thirsty dog being granted Jannah hold since her intention was not to please Allah?
Narrated Abu Huraira: Allah's Apostle (ﷺ) said,
"A prostitute was forgiven by Allah, because, passing by a panting dog near a well and seeing that the dog was about to die of thirst, she took off her shoe, and tying it with her head-cover she drew out some water for it. So, Allah forgave her because of that."
It doesn't say she didn't do so for Allah’s sake either.
“The Most Merciful has mercy on those who are merciful. Be merciful to those who are on earth so that the One Who is in heaven will have mercy on you.”
 [Book 54, Hadith 538]
 [Narrated by al-Tirmidhi (1924); classed as saheeh by al-Albaani in Saheeh al-Tirmidhi, 1569]< Back to Questions