St. Ambrose
Bishop of Milan, Doctor · c. 340 to 397 · Father, Doctor of the Church, Saint
Explains this verse
He pronounces it to be foreign to the character of a preacher of the heavenly kingdom to run from house to house and change the rights of inviolable hospitality; but as the grace of hospitality is supposed to be offered, so also if they are not received the dust must be shaken off, and they are commanded to depart from the city; as it follows, And whosoever will not receive you when ye go out of that city, shake off the very dust from your feet for a testimony, &c.
Catena Aurea of St. Thomas Aquinas (quoting St. Ambrose)Read the full passage
Or it is a great return of hospitality which is here taught, i. e. that we should not only wish peace to our hosts, but also if any faults of earthly infirmity obscure them, they should be removed by receiving the footsteps of apostolical preaching.