The Prophet ﷺ would accept gifts and give something in return for them.
حدثنا يحيى بن أكثم وعلي بن خشرم قالا حدثنا عيسى بن يونس عن هشام بن عروة عن أبيه
أن النبي ﷺ كان يقبل الهدية ويثيب عليها
Takhrij (referencing)Bukhari also narrated it in the Book of Gifts and Their Merit and Encouragement Thereof, chapter on reciprocating a gift, hadith no. 2585, from the hadith of Isa bin Yunus, with the same wording.On this topic, there are also narrations from Abu Hurairah [to come, no. 3945], Anas [previously mentioned, no. 1338], Ibn Umar [Abu Dawud, hadith no. 1672], and Jabir [Ibn Adi in Al-Kamil, 6/2114].