It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you is beating his servant and he (the servant) mentions Allah, the Mighty and Majestic, then lift your hands (that is, stop beating him)."
Imam Abu Bakr Ibn Abi Shaybah (may Allah have mercy on him) recorded this hadith in his al-Musannaf.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الأذكار والدعوات / 3412
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :هذا إسناد تالف، فيه أبو هارون وهو كذاب، وضعفه البوصيري لضعف أبي هارون كما في الإِتحاف (3/ 14 أمختصر). » «أخرجه سنن الترمذي برقم: 1950، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 6153»