It is narrated from Sayyiduna Miqdam bin Ma'dikarib (may Allah be pleased with him) that he heard the Prophet (peace and blessings of Allah be upon him) say: "It is obligatory upon every Muslim to take care of the guest for one night; if the guest remains deprived in the courtyard of his host until morning, then the host has become indebted to him—he may repay it if he wishes, or he may forgo it."
Hadith Referenceمسند احمد / مسند الشاميين / 17173
Hadith Gradingحکم دارالسلام:حديث صحيح ، زياد بن عبدالله مختلف فيه، لكنه متابع