Narrated Abu Huraira (Prophet's companion): The Prophet said, "While a dog was going round a well and was about to die of thirst, a prostitute saw it and took off her shoe (to catch water from the well) and watered it. So Allah s.w.t forgave her because of that good deed". (Bukhari 4.673)