It is narrated from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever buys one of the servants, and then the habits and traits of that servant do not agree with the temperament and nature of that master, let him sell him and buy another, until his traits agree with his temperament; for people's temperaments and natures differ. And do not cause pain and harm to a servant of Allah (because of a mismatch of temperament)."
Isa bin Yunus narrated the like of it from Abu Bakr bin Abi Maryam with this same chain; however, he did not narrate it as marfu'.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الأدب / 2830
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف. » «أخرجه المطالب العالية لابن حجر برقم: 2830 / 2»