It was narrated from Nafi' from Ibn 'Umar that the Prophet (ﷺ) said:
"Whoever sells a palm tree and sells a slave." Mentioning both of them together.[1]
English reference: Vol. 3, Book 12, Hadith 2212
Arabic reference: Book 12, Hadith 2297