Narrated ‘Uqba bin ‘Amir:
We staid to the Prophet, “You send us out and it happens that we have to stay with such people as 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 do, take the right of the guest from them.”
Sahih Bukhari, Volume 3, Book43, Number 641