It is narrated from Sayyiduna al-Miqdam bin Ma'di Karib (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Whoever stops with a people, it is upon them to host him; and if they do not host him, he has the right to take from them the equivalent of his hospitality."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17802