It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: When someone is invited, he should accept it. Or he said: He should attend the invitation. Sayyiduna Ibn Umar (may Allah be pleased with them both) would accept every invitation, whether he was fasting or not.