The ruling on accepting a gift
Accepting a gift is a sunnah of the Messenger of Allah ﷺ. Some scholars hold that when the conditions for giving a gift are met, accepting the gift becomes obligatory, and those conditions are as follows:
(1) The giver of the gift should not be one who reminds others of his favours, because accepting a gift from those who remind others of their favours can sometimes be harmful. Such a person may spread all sorts of talk among people, saying: I gave so-and-so a gift. In such a situation, if a person does not accept the gift, there is room for him to offer an excuse, so that he is not harmed by the favour of such a person.
(2) The second condition is that the wealth of the giver of the gift should be lawful. If his wealth is unlawful and a person, avoiding the unlawful, returns his gift, there is no harm in that. If his wealth is a mixture of lawful and unlawful, then there is no harm in accepting the gift, because the Messenger of Allah ﷺ accepted gifts from the Jews, although they were well known for taking interest and consuming what is unlawful.
Then the recipient of the gift should also give the giver a gift in return. The Messenger of Allah ﷺ would accept a gift and would also give something in return. His saying ﷺ is:
“Whoever does you a good turn, reward him for it. If you have nothing to give him, keep making supplication for him, until you think that you have repaid him.”
Reference: Sunan Abi Dawud, Hadith no. 1672
Reference: Ibn Uthaymin: Nur ala al-Darb: 1/247