1 John 3:22

3:22 and whatever we ask we receive from him, because we keep his commandments and do the things that are pleasing to him.

1 John 5:14-16

5:14 And this is the confidence that we have before him: that whenever we ask anything according to his will, he hears us. 5:15 And if we know that he hears us in regard to whatever we ask, then we know that we have the requests that we have asked from him. 5:16 If anyone sees his fellow Christian committing a sin not resulting in death, he should ask, and God will grant life to the person who commits a sin not resulting in death. There is a sin resulting in death. I do not say that he should ask about that.