The short answer
Several passages in the Old and New Testaments call God’s people to care for the poor, widows, and orphans. Some of the clearest are James 1:27, Deuteronomy 10:18, Psalm 146:7-9, Proverbs 19:17, Isaiah 58:6-7, and Matthew 25:35-40. Together they show that care for the vulnerable is a steady theme in Scripture, not a single command.
James 1:27: faith that acts
James writes, “Religion that is pure and undefiled before God the Father is this: to visit orphans and widows in their affliction, and to keep oneself unstained from the world” (ESV). The verse links practical care with personal faithfulness, which is why it is often quoted when people talk about helping those in need.
Deuteronomy 10:18 and Psalm 146
Deuteronomy 10:18 describes God as the one who executes justice for the fatherless and the widow and who loves the sojourner. Psalm 146:7-9 says the LORD “sets the prisoners free” and upholds the widow and the fatherless. This psalm puts prisoners and the vulnerable side by side, which makes it a useful text for a message about people behind bars.
Proverbs 19:17 and Isaiah 58
Proverbs 19:17 says that whoever is generous to the poor lends to the LORD, and that he will repay the good deed. Isaiah 58 describes a fast that God chooses. It includes loosing the bonds of wickedness, letting the oppressed go free, and sharing bread with the hungry.
Matthew 25:35-40: care for the least
In Matthew 25, Jesus says that caring for the hungry, for strangers, and for others in need is the same as caring for him. Prisoners are named in the same list, which is why readers asking “what does God say about visiting prisoners” often find this passage too.
Applying these verses to a prison audience
Many people in prison have families who are struggling, and some worry about the children, parents, or relatives who depend on them. A message can use these passages to encourage care that is possible from inside, such as prayer, staying in touch where allowed, and encouraging others who are struggling.
Be careful not to shame people with few resources. The point is that God cares for the vulnerable and that faithful people respond in ways they can. The message is not that every listener must do more than they are able to.
Keep the application small
Choose one or two passages and make the application specific: one prayer, one act of care, or one conversation. A long list of duties can overwhelm people who already feel stretched thin.