Some people have wondered if they should have been visiting people that they knew were prisoners. One place in the Scriptures that gives us the affirmative on the question is Matthew 25:31-46 when Jesus describes the Final Judgment. The whole passage is recommended reading, but I will point out to everyone here the snippets that are relevant. Jesus said about the righteous (in Matthew 25:38-40), that they will say, " When did we see You sick, or in prison, and come to You? ’ The King will answer and say to them, ‘Truly I say to you, to the extent that you did it to one of these brothers of Mine, even the least of them , you did it to Me." Then He described about the unrighteous (in Matthew 25:44-46), that they will say, "Lord, when did we see You hungry, or thirsty, or a stranger, or naked, or sick, or in prison, and did not take care of You?’ Then He will answer them, ‘Truly I say to you, to the extent that you did not do it ...