The Psalmist wrote:
Ps 145:8-9 The LORD is gracious and compassionate, slow to anger and rich in love. The LORD is good to all; he has compassion on all he has made.
Does God only love those whom he knows will be saved?
John 3:16 For God so loved THE WORLD that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
God loves the sinner, while they are still sinners.
Rom 5:8 But God demonstrates his own love for us in this: While we were still sinners, Christ died for us.
Eph 2:4-5 But because of his great love for us, God, who is rich in mercy, made us alive with Christ even when we were dead in transgressions—it is by grace you have been saved.