This is my favorite quote. It is on my fridge and I read it at least once a day. I still don't have it memorized yet though. I got it from a great book by Linda Dillow called Calm My Anxious Heart. I highly recommend this book!
In time of trouble, say, "First, he brought me here. It is by his will I am in this strait place; in that I will rest." Next, "He will keep me here in his love, and give me grace in this trial to behave as his child." Then say, "He will make the trial a blessing, teaching me lessons he intends me to learn, and working in me the grace he means to bestow." And last, say, "In his good time he can bring me out again. How and when, he knows." Therefore, say, "I am here (1) by God's appointment, (2) in his keeping, (3) under his training, (4) for his time." ~Andrew Murray.