The Prophet ﷺ said: It is a duty of every Muslim (to provide hospitality) to a guest for a night. If anyone comes in the morning to his house, it is a debt due to him. If he wishes, he may fulfil it, and if he wishes he may leave it. (Using translation from Abū Dāʾūd 3750)
أَنَّهُ سَمِعَ رَسُولَ اللهِ ﷺ يَقُولُ عَلَى كُلِّ مُسْلِمٍ لَلَيْلَةُ الضَّيْفِ حَقٌّ وَاجِبَةٌ فَإِنْ أَصْبَحَ بِفِنَائِهِ فَهُوَ لَهُ عَلَيْهِ دَيْنٌ إِنْ شَاءَ اقْتَضَى وَإِنْ شَاءَ تَرَكَ