You prove your love for God by your obedience to God. This isn’t about working to earn God’s approval, but rather demonstrating your commitment to Christ. If you love Him, you will obey His commands (John 14:15). We don’t do the works we do in obedience to God to earn His favor. Instead, we obey out of an appreciation of His favor for us.
It’s not about a works-based salvation, but a recognition that true salvation will encompass works done out of our love for Jesus. No one who refuses to love God will obey His commands. The works you do in obedience to your Lord are the evidence of a genuine salvation. You prove your love by surrendering your life and living for Him.