John 14:15
AMP - 15 If you [really] love Me, you will keep (obey) My commands.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.
First John 3:23 And this is His commandment, that we should believe on the name of His Son, Jesus Christ, and love one another as He gave us commandment.
Romans 6:23 For the wages of sin is death, but the GIFT of God is eternal life, through Jesus Christ our Lord. John 6:47.
Eternal life is a free gift from God that we did nothing for. Our rewards in heaven are based on what we do after we have received the free gift. First Corinthians 3:11-15
The golden rule. Do unto others as you would have them do unto you.