You mean this idea here or another?
Matt 4:
43“You have heard that it was said, ‘You shall love your neighbor and hate your enemy.’
44But I say to you, Love your enemies and pray for those who persecute you,
45so that you may be sons of your Father who is in heaven.
For he makes his sun rise on the evil and on the good, and sends rain on the just and on the unjust.
46For if you love those who love you, what reward do you have? Do not even the tax collectors do the same?
47And if you greet only your brothers,[SUP]
i[/SUP] what more are you doing than others? Do not even the Gentiles do the same?
48You therefore must be perfect, as your heavenly Father is perfect.
God loves out of who He is. Not out of people earning His love or not. This same idea is now given to us as His sons, we love people because we are loved by Him. The fruit of being loved by Him means we can love those who don't love us. Scripture describes this as "perfect, completion, mature". Maturity in Christ is loving others even those who don't deserve it from us because we didn't deserve it from Him.
We've been given the ministry of reconciliation as described in 2 Co 5:
18All this is from God, who through Christ reconciled us to himself and gave us the ministry of reconciliation;
19that is, in Christ God was reconciling the world to himself,
not counting their trespasses against them, and entrusting to us the
message of reconciliation.
So we see here God isn't counting the trespasses of the world, He came to save it. We judge ourselves when we don't come into His light for fear our "deeds" will be exposed. This links back to the garden with Adam/Eve when Adam/Eve hid in the bushes and covered themselves with fig leaves (religion), but God covered them with skins (righteousness).
This actually connects with the topic at hand because our righteous is linked to our prayers being effective according to James.
James 5:16 Therefore, confess your sins to one another and pray for one another, that you may be healed.
The prayer of a righteous person has great power as it is working.
Please note in this Scripture, James links the prayer being effective due to the one doing the praying. I know this is contrary to some people's beliefs, but James does it 2x. Get a mature believer (elder) and a righteous person will have a powerful prayer. He doesn't mention any gift of healing in this Scripture either.
So what is a mature believer according to Scripture? As I stated earlier it is one who is matured in love and knows their identity in Christ.
1 Co 13:11 When I was a child, I spoke as a child, I understood as a child, I thought as a child;
but when I became a man, I
put away childish things. 12 For now we see in a mirror, darkly, but then face to face.
Now I know in part, but then I shall know just as I also am known.
We are known by Love. And will know Love.
I tend to depart at that point as well. I cannot at this time transact the two concepts. But at the same time, how can He know all and not know whether we will use freewill to accept or not accept grace? How can this knowledge do anything other than affect such sub gifts as healing? Let's say He knows by omniscience that Bob will never accept the gospel. Knowing Bob will be forever separated from paradise, can Father bless Bob with a long healthy, wealthy 80 years in this reality? I can see that wholeheartedly, in fact I believe I see it in reality every day.