Allah's Messenger (ﷺ) used to accept gifts and used to give something in return.
Sahih al-Bukhari Book 51, Hadith 19
← Previous Hadith
When the delegates of the tribe of Hawazin came to the Prophet (ﷺ) he stood up amongst the people, Glorified and Praised Allah as He deserved, and said, "Then after: Your brethren have come to you with repentance and I see it logical to return to them their captives; so whoever amongst you likes to do that as a favor, then he can do it, and whoever of you like to stick to his share till we give him his right from the very first Fai (war booty) (1) which Allah will bestow on us, then (he can do so)." The people replied, "We do that (to return the captives) willingly as a favor for your sake."
Sahih al-Bukhari Book 51, Hadith 18 Next Hadith → that his father took him to Allah's Messenger (ﷺ) and said, "I have given this son of mine a slave." The Prophet asked, "Have you given all your sons the like?" He replied in the negative. The Prophet (ﷺ) said, "Take back your gift then."
Sahih al-Bukhari Book 51, Hadith 20
Sahih al-Bukhari Book 51, Hadith 18 Next Hadith → that his father took him to Allah's Messenger (ﷺ) and said, "I have given this son of mine a slave." The Prophet asked, "Have you given all your sons the like?" He replied in the negative. The Prophet (ﷺ) said, "Take back your gift then."
Sahih al-Bukhari Book 51, Hadith 20