Drawing closer to God

I find it easier to draw close to God in times of pain and difficulty. I know this probably sounds weird. It's as if during the good times, life itself is enough to sustain me, but when things get tough I need to search for something more. I need more than life itself just to get me through the day. And I usually look to God.