Jesus says in Matthew 22:37-39 ““You shall love the Lord your God with all your heart, and with all your soul, and with all your mind. This is the great and first commandment. And a second is like it, You shall love your neighbor as yourself.”
So then, who is our neighbor? In the Catechism, paragraph 2212, it says “The fourth commandment illuminates other relationships in society. In our brothers and sisters we see the children of our parents; in our cousins, the descendants of our ancestors; in our fellow citizens, the children of our country; in the baptized, the children of our mother the Church; in every human person, a son or daughter of the One who wants to be called "our Father." In this way our relationships with our neighbors are recognized as personal in character. The neighbor is not a "unit" in the human collective; he is "someone" who by his known origins deserves particular attention and respect.”
God knows the person you are praying for. He knows their deepest needs. We don’t need to know all the specifics in order to pray for someone. We just need to see them as a special and unique creation of our Heavenly Father, someone whom God loves, and desires to be loved by.