Chapter 103: What should one say to the Host if an uninvited Person is accompanied with an invited Person
739. abu mas`ud al-badri (may allah be pleased with him) reported: a man prepared some food especially for the prophet (pbuh) and invited him along with four others. but a man accompanied him. having arrived at the door, messenger of allah (pbuh) said to the host, "this person has followed us. you may allow him, if you like, and if you like he will return.'' he said: "o messenger of allah, i allow him, too.''
[al-bukhari and muslim].
commentary: it will be considered an expression of bad manners if somebody participates in a feast as an uninvited, parasitic guest. yet, he stands a chance in case he is allowed by the host. in this hadith, there is a case when messenger of allah (pbuh) said to the host that it was up to him to let the uninvited person to stay for food or go. however, the invitees may take along with them two or three uninvited guests if they believe that the host will not take it ill.