Bismillahi walhamdulilahi 'alaa rasulillah,
Remember that the outcome of our actions are in the Will of Allah and nothing else. Our efforts do not convey a certainty towards the outcome whatsoever.
There are times where you plan for something, but it didnt happen. Then there are times you may just briefly sit and didnt think too much, but it happen, as for instance my marriage.
Is it by luck?
This shows that Allah is The One in control. We should put our efforts in, but know that the result is in the Will of Allah . It's miraculous, because there will be times (and I know many of my friendss have seen this) that we tried so hard, expect this and that, but actually you didnt score, i mean you did not achieve what you expected. Thats Allah at work, and know that it is Allah, and nothing else.
كتب عليكم القتال وهو كره لكم وعسى ان تكرهوا شيئا وهو خير لكم وعسى ان تحبوا شيئا وهو شر لكم والله يعلم وانتم لا تعلمون
البقرة - آية 216
"Warfare is ordained for you, though it is hateful unto you; but it may happen that ye hate a thing which is good for you, and it may happen that ye love a thing which is bad for you. Allah knoweth, ye know not."
[Suratu Baqarah verse 216]
Times come where we perceive something to be bad for us, but Allah sees goodness it in. And there are times where we perceive something to be good for us, but Allah finds badness in it. We do not know what is best for us, and so it is always important to look to Allah for everything we do, and put our trust in His judgment. For who knows better then The All-Knowing, The Wise?
ps : jazakallahu wa khairan katheera to my beloved zauj for the gift of verse from suratu baqara :-)