Sahih Muslim, Book 27, Hadith 69 (Muslim 4283)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

When a slave fulfils obligation of Allah and obligation of his master, he has two rewards for him. I narrated this to Ka'b, and Ka'b said: (Such a slave) has no accountability, nor has a poor believer.