1 John 3:22 And whatsoever we ask, we receive of him, because we keep his commandments, and do those things that are pleasing in his sight.
1 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.
This passage furnishes us the reason some prayers are answered and some are not. If we keep his commandments and do those things that are pleasing in his sight, John states we will receive of Him whatsoever we ask.
Now what are the commandments John is referring to? Many will rush in to suggest he refers to the Ten Commandments. Others, equally fervently, might wish to insist John is focusing on the Fourth Commandment, for that is the one that has allegedly been changed or dropped out of the list, but needs to be restored to favor again. But these are not the commandments John is directing our attention to. In fact, he spells out very specifically just what commandments he has in mind.
Notice John speaks of commandments. The use of the plural here should alert us to watch for at least two. John specifies two: (1) love one another, and (2) believe on His Son, Jesus Christ. But notice he states these in the reverse order to that I just listed. The first commandment John specifies is, Believe on the name of His son, Jesus Christ. One must believe on Jesus Christ to meet the conditions for answered prayer that John specifies in this passage. To find out more about how to do that, read the New Testament book, the Gospel of John. I plan, Lord willing, to share verses about believing on Christ and the plan of salvation after I’ve covered the verses about prayer.