BUKHARI 2461:
from Qulnā Lilnnabī ﷺ Innak Tabʿathunā Fananzil Biqawm Lā Yaqrūnā Famā Tará Fīh —
We said to the Prophet, "You send us out and it happens that we have to stay with people who do not entertain us. What do you think about it? He said to us, "If you stay with some people and they entertain you as they should for a guest, accept their hospitality, but if they don't, take the right of the guest from them."
البخاري ٢٤٦١:
عن قلنا للنبي ﷺ انك تبعثنا فننزل بقوم لا يقرونا فما ترى فيه —
قُلْنَا لِلنَّبِيِّ ﷺ إِنَّكَ تَبْعَثُنَا فَنَنْزِلُ بِقَوْمٍ لاَ يَقْرُونَا فَمَا تَرَى فِيهِ فَقَالَ لَنَا إِنْ نَزَلْتُمْ بِقَوْمٍ فَأُمِرَ لَكُمْ بِمَا يَنْبَغِي لِلضَّيْفِ فَاقْبَلُوا فَإِنْ لَمْ يَفْعَلُوا فَخُذُوا مِنْهُمْ حَقَّ الضَّيْفِ
hadithunlocked.com