Having instructed them how to bear with evil, the Apostle now tells them how to act in doing good. Hence, according to a Gloss he is beginning his moral instruction after commending and urging them to imitate him. In regard to this he does two things: first, he urges them to good; secondly, he prays for them (v. 20). In regard to the first he does three things: first, he shows them how to do good to their neighbor; secondly, to themselves (v. 4); thirdly, to prelates (v. 7).
He says, therefore: Thus, we have said that an immovable kingdom has been promised to us. If we would enter it, we must... have charity: Let brotherly love continue: 'He that does not love his brother whom he sees, how can he love God whom he does not see' (1 Jn. 4:20); 'Honor one another; love the brotherhood' (1 Pt 2:17). But because charity is not idle, as Gregory says, he urges them to acts of charity: 'Let us love not in tongue but in deed and in truth' (1 Jn. 3:18). Hence, he says that we should show charity to travelers by hospitality, to those in bands by compassion, to the poor by coming to their aid. In regard to the first he says, do not neglect to show hospitality to strangers.
Source: Commentary on Hebrews