Uqba bin Amir reported,

We said to the Messenger of Allah ﷺ, "You send us out, and we stop at the homes of people who do not show us hospitality. What is your view on this?"The Messenger of Allah ﷺ said to us, "If you stop at a people's place and they provide for you what is fitting for a guest, then accept it. But if they do not, then take from them the guest's due that is owed to you."

Ibn Majah 3676

Sahih

حدثنا محمد بن رمح أنبأنا الليث بن سعد عن يزيد بن أبي حبيب عن أبي الخير

عن عقبة بن عامر أنه قال

قلنا لرسول الله ﷺ إنك تبعثنا فننزل بقوم فلا يقرونا فما ترى في ذلك قال لنا رسول الله ﷺ إن نزلتم بقوم فأمروا لكم بما ينبغي للضيف فاقبلوا وإن لم يفعلوا فخذوا منهم حق الضيف الذي ينبغي لهم

ابن ماجه 3676صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Manners
Chapter
Right of the guest
Numbering
Darussalam 3676
Ibn Majah 3676