Sayyiduna Ammar bin Yasir (may Allah be pleased with him) said: The Noble Prophet (peace and blessings be upon him) would say the takbeer seven times in the first rak'ah of the two 'Eids, and five takbeers in the second rak'ah, and he would begin with the prayer before the sermon.