The Bible teaches that God gives people who are close friends with Jesus what they ask for when they pray.
A close friend is someone whom we spend lots of time with. The Bible teaches that Christians can be close friends with Jesus; they can spend time with him as they read their Bibles, pray and worship. The Bible teaches that people who are close friends with Jesus follow his teaching; this means they do the things Jesus taught people to do. Christians believe people who spend time with Jesus start to love the same things Jesus loves and want the same things he wants.
Christians believe God gives people who are close friends with Jesus what they ask for when they pray because they want the same things Jesus wants and therefore ask for the things God longs to give.