Obviously to seek the Divine only for what one can get out of Him is not the proper attitude; but if it were absolutely forbidden to seek Him for these things, most people in the world would not turn towards Him at all. I suppose therefore it is allowed so that they may make a beginning—if they have faith, they may get what they ask for and think it a good thing to go on and then one day they may suddenly stumble upon the idea that this is after all not quite the one thing to do and that there are better ways and a better spirit in which one can approach the Divine. If they do not get what they want and still come to the Divine and trust in Him, well, that shows they are getting ready.
Ref: Letters on Yoga Vol. II