Read this passage and open each verse for the full verse feed and commentary tools.
22and whatever we ask, we receive from him, because we keep his commandments and do the things that are pleasing in his sight. 23This is his commandment, that we should believe in the name of his Son, Jesus Christ, and love one another, even as he commanded. 24He who keeps his commandments remains in him, and he in him. By this we know that he remains in us, by the Spirit which he gave us.
1 John 3:22-24 (WEB)