In Matthew 7, in the Sermon on the Mount, Jesus said you can identify people’s love for God by their actions.
17 A good tree produces good fruit, and a bad tree produces bad fruit.18 A good tree can’t produce bad fruit, and a bad tree can’t produce good fruit. 19 So every tree that does not produce good fruit is chopped down and thrown into the fire. 20 Yes, just as you can identify a tree by its fruit, so you can identify people by their actions.
21 “Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. 22 On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ 23 But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’