The Messenger of Allah ﷺ said, "Once a dog was circling a well, nearly dying of thirst, when one of the prostitutes of the Children of Israil saw it. She removed her leather sock, drew water with it, and gave the dog to drink. For this, she was forgiven."
قال رسول الله ﷺ قال: بينما كلب يطيف بركية قد كاد يقتله العطش إذ رأته بغي من بغايا بني إسرائيل. فنزعت موقها فاستقت له به، فسقته إياه، فغفر لها به.
Bukhari related it in the chapters on the Prophets (3467), and Muslim in the Book of Greetings (2245), both from the hadith of Abdullah bin Wahb, who said, Jareer bin Hazim told me, from Ayub Sakhtiyani, from Muhammad bin Sirin, from Abu Hurairah, who narrated it."Al-Muwaq" means the leather sock, and "al-rakiyah" means the well.