The Messenger of Allah ﷺ said, "When a slave obeys his Lord and his master, he receives two rewards."
حدثنا يزيد أخبرنا حماد بن سلمة عن عمار بن أبي عمار قال سمعت
قال رسول الله ﷺ إذا أطاع العبد ربه وسيده فله أجران
Its isnad is sahih, and it is found in Jami al-Masanid 310, taken from this same place. It has already appeared at 7564 from Abu Kamil, from Hammad. Its meaning has also already appeared in similar form at 7422, through the narration of Abu Salih, from Abu Hurairah. See also 7642.