"No one can receive anything except it come from heaven." John 3:27
If that is the case, then you received this from God and if you were a praying believer, then your prayers would have been answered.
Because of post-hoc reasoning, this is not an argument that God did it, but rather an assumption that God did it.
If I were in your shoes, I would have given God the credit because I believe that everything I receive comes from Him.