1 John 3:22-24
3:22 and whatever we ask we receive from him, because we keep his commandments and do the things that are pleasing to him.
3:23 Now this is his commandment: that we believe in the name of his Son Jesus Christ and love one another, just as he gave us the commandment.
3:24 And the person who keeps his commandments resides in God, and God in him. Now by this we know that God resides in us: by the Spirit he has given us.