It is narrated from Sayyiduna Abu Umamah (may Allah be pleased with him) that "The Messenger of Allah (peace and blessings be upon him) came back from Khaybar and he (peace and blessings be upon him) had two slaves with him. He (peace and blessings be upon him) gave one of them as a gift to Sayyiduna Ali (may Allah be pleased with him) and instructed: 'Do not strike him, for I have been forbidden to beat those who pray, and I saw him praying while we were returning from Khaybar.' He (peace and blessings be upon him) also gave a slave to Sayyiduna Abu Dharr (may Allah be pleased with him) and said: 'Accept my counsel to treat him well.' So Sayyiduna Abu Dharr (may Allah be pleased with him) freed him, whereupon the Prophet (peace and blessings be upon him) asked him: 'What became of that slave?' He said: 'O Messenger of Allah (peace and blessings be upon him)! You ordered me to treat him well, so (in obedience to that order) I freed him.'" Imam Ahmad bin Hanbal also narrated this hadith in his Musnad, and its chain is hasan (good), although the imams differ about the reliability of one of its narrators, Abu Ghalib.