it is not wrong to give gifts on Eid al fitr and eid al adha to the family, relatives and friends because these are the joyous days for the muslimeen and it is required of a muslim to show happiness on these days and it is mustahabb
There is nothing wrong with giving gifts on Eid al-Fitr and Eid al-Adha to family and relatives because these are days of joy and happiness on which it is mustahabb to uphold ties, show kindness, and eat and drink plenty. This is not bid‘ah; rather it is something that is permissible and a good custom that is one of the symbols of Eid. Hence it is not allowed to give gifts and express joy and happiness on innovated occasions on which it is not prescribed to celebrate, such as New Year, the Mawlid (Prophet’s birthday) and the fifteenth of Sha‘baan (an-nusf min Sha‘baan), because this makes them like Eids.
preparing foods, inviting people and giving gifts are not wrong on the occasion of Eid as these are the most beautiful days and doing so make people get closer to one another.
When Abu Bakr (may Allah be pleased with him) entered the house of the Messenger of Allah (blessings and peace of Allah be upon him) and found with him two young girls who were singing on the days of Eid, he rebuked them, but the Prophet (blessings and peace of Allah be upon him) said: “Let them be.” And he did not say it because they were young girls. Rather he said: “Let them be, for these are the days of Eid.”
Islam is easy going and tolerant religion and it allows it people to express joy and happiness.
It is well known that there are no festivals in Islam except those which are proven in sharee‘ah, namely Eid al-Fitr and Eid al-Ahda, and Friday which is the weekly “Eid”. As for the fifteenth of Sha‘baan (an-nusf min Sha‘baan), there is no proof in Islam is that it is an Eid. If it is taken as an occasion on which charity is distributed or gifts are given to neighbors, then this is taking it as an Eid.
And Allah knows best.