When we think of the great models of pastoral ministry in Scripture, rarely do we turn to the Old Testament. But I believe Moses clearly demonstrates a pastor's heart at the end of Numbers 27 (though certainly not in this passage alone). He is told by the LORD that he will die because of his rebellion at Meribah - "you also shall be gathered to your people, as your brother Aaron was, because you rebelled against my word in the wilderness of Zin when the congregation quarreled, failing to uphold me as holy at the waters before their eyes" (Num. 27:13-14).
But instead of turning introspective or beginning to feel sorry for himself (as many of us would do in a similar situation), his thoughts turn immediately towards the people he has been leading - the same people who have constantly murmured against him and complained about him. And yet, he still has their best intentions at heart. He longs for them to be taken care of and given provision and leadership. Numbers 27:15-17 says, "Moses spoke to the LORD, saying, 'Let the LORD, the God of the spirits of all flesh, appoint a man over the congregation who shall go before them and come in before them, who shall lead them out and bring them in, that the congregation of the LORD may not be as sheep that have no shepherd.'" He did not want God's people to be left without a leader, without a shepherd, without a pastor! And of course, the LORD provided in the person of Joshua.
May God give to his Church pastors with a heart like that of Moses.