You must know what is your fault and what is your destiny. Sometimes you work hard but don't get the result. It's only because Allah has a different result which is better for you. Sometimes you don't work hard. That's why you don't get what you desire for. That's your fault. Don't blame Allah for everything. On the other hand, don't blame yourself for everything.