Question: How can I tell that my prayer to the Creator is correct?
Answer: The right prayer is when you don’t ask for the obstacle to go away, but to see the goodness and usefulness in it. You have to rise above the disturbance and understand that it is leading us to ascent, progress, advancement toward the goal, and there are no accidental, irrelevant forces in it. “There are no criminals in the king’s castle”—everyone in this world are His devoted servants, whom He uses to lead you to correction.
If you ask for your attitude to what is happening to change and it doesn’t, that means your plea is still artificial and superficial, and is still egoistic inside. That is, you still haven’t completed this request to the full measure, which is necessary for the request to become valid and bring about your correction. There is still some dirt or egoistic benefit mixed up with it. Therefore, the Creator either replaces one obstacle after another in front of you, or He beats you with the same obstacles, and this can go on for years, until you finally understand.
From the 1st part of the Daily Kabbalah Lesson 8/23/12, Writings of Baal HaSulam