It is narrated from Sayyiduna Abu Shurayh al-Ka'bi (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever believes in Allah and the Last Day, let him honour his neighbour; whoever believes in Allah and the Last Day, let him speak good or remain silent; and whoever believes in Allah and the Last Day, let him honour his guest. His special hospitality is one day and one night, and hospitality is three days; whatever is after that is charity. And it is not lawful for the guest to stay with his host so long that he compels him to put him out."
Both narrations have the same wording.
Hadith Referenceالمعجم الكبير للطبراني / باب الهاء / 18695