
“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, drew out some water for it. So Allah forgave her because of that.”
Cited in the Sahih al-Bukhari, 4:538
It has to be recalled, in this context, that, in the Middle East, dogs are often wild, and often scavengers. In fact, sometimes they travel in packs and can be somewhat frightening. They’re not always highly thought of. In reading this tradition from the Prophet, don’t be thinking of an adorable little puppy.