There seems to be two possible ways that a preacher can feed their flock. One, they can be inspired by God to preach sermons that give people exactly what they need in due season without ever realizing the sermon just fits the needs of the church. Two, they really get to know each person in the congregation and develop a clear understanding what their needs are to preach sermons that match what they can see.
My question is, what is the biblical basis that a preacher must engage the members getting to know them and their thoughts, rather than just bury himself in theological study and prayer barely knowing his congregation?