Abu Mas'ud Al-Badri (May Allah be pleased with him) reported:
A man prepared some food especially for the Prophet (ﷺ) and invited him along with four others. But a man accompanied him. Having arrived at the door, Messenger of Allah (ﷺ) 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].
App reference: Book 3, Hadith 12
Arabic/English book reference: Book 3, Hadith 739