It's not a way to get whatever you want from God. Obviously, if you ask God for something, and it's in his will, you will receive it.
Jesus was talking to his disciples. God was going to give them whatever they needed to do the work that He was calling them to do.