Praise be to Allah.
It was narrated that that Sahaabah (may Allaah be pleasedwith them) used to congratulate one another on the occasion of Eid by sayingTaqabbal Allaahu minna wa minkum (May Allaah accept (this worship)from us and from you). It was narrated that Jubayr ibn Nufayr said: When thecompanions of the Messenger of Allaah (peace and blessings of Allaah beupon him) met one another on the day of Eid, they would say to one another:“Taqabbal Allaahu minna wa mink (May Allaah accept (this worship)from us and from you).” Al-Haafiz said: Its isnaad is hasan.
Imam Ahmad (may Allaah have mercy on him) said: There isnothing wrong with one man saying to another on the day of Eid: TaqabbalAllaahu minna wa mink (May Allaah accept (this worship) from us and fromyou). This was narrated by Ibn Qudaamah in al-Mughni.
عيد مبارك Taqabbal Allahu minna wa minkum wa kullu ‘aamin wa antum bikhayr (May Allah accept it from us and you and may you be well every year).
Shaykh al-Islam Ibn Taymiyah was asked in al-Fataawaal-Kubra (2/228): Does the common Eid greeting that is on people’s lips– “Eid Mubaarak” etc – have any basis in sharee’ah or not? If there is abasis for that in sharee’ah, what should we say?
He replied:
With regard to the greeting on the day of Eid, which peoplesay to one another when meeting after the prayer, “Taqabbal Allaahu minnawa minkum wa ahaalahu Allaah ‘alayka (May Allaah accept (this worship)from us and from you and may you live to see another Eid)” etc, this wasnarrated from a number of the Sahaabah who used to do that and allow othersto do so too, and from the Imams such as Imam Ahmad. But Ahmad said: I donot initiate this greeting with anyone. But if someone greets me in thismanner I return his greeting. That is because returning a greeting isobligatory, but initiating this greeting is not a Sunnah that is enjoined,but neither is it forbidden. The one who does it has an example and the onewho does not do it also has an example. And Allaah knows best.
Shaykh Ibn ‘Uthaymeen was asked: What is the ruling onoffering Eid greetings and is there a particular wording to be used?
He replied:
It is permissible to offer greetings and congratulations onEid, and there is no specific greeting. Rather the greetings that peoplecustomarily use are permissible so long as no sin is involved.
He also said:
Some of the Sahaabah offered greetings and congratulations onthe occasion of Eid. Even if we assume that they did not do that, it has nowbecome something customary that people are used to doing, congratulating oneanother on the occasion of Eid and on completing the fast and qiyaam.
And he was asked: what is the ruling on shaking hands,embracing and congratulating one another after the Eid prayer?
He replied:
There is nothing wrongwith these things, because people do not do these things as acts of worshipintended to draw them closer to Allaah, rather they do them because they arecustomary, and to honour and show respect to one another. So long as thereis nothing in sharee’ah to indicate that a custom is forbidden, then thebasic principle is that it is permissible.
Majmoo’ Fataawa Ibn ‘Uthaymeen, 16/208-210.