I've posted this from time to time, but print it out and pin it up so you won't forget --- EVER.
James 1: 12 - 15
Happy is the man that keeps on enduring trial, because on becoming approved he will receive the crown of life, which GOD promised to those who continue loving him. When under trial, let no one say: “I am being tried by God.” For with evil things God cannot be tried nor does he himself try anyone. But each one is tried by being drawn out and enticed by his own desire. Then the desire, when it has become fertile, gives birth to sin; in turn, sin, when it has been accomplished, brings forth death.
So you see, it's not God. You lost your job due to a reason whether the company was laying off, or you got fired, or due to some political manuevering by people within your company --- but why blame God? Now you just like the rest of us will go through unforeseen and negative experiences, and sometimes they are worse than others' experiences. You just have to keep trying and pick yourself up.
God Bless