Allah does not wrong people, rather they wrong themselves 30:8-10
30:8 Have they never thought to themselves that Allah did not create the heavens and the earth and all that is between except with truth, and for a stated term? Yet most people disbelieve that they will ever meet their Lord.
30:9 What, have they never journeyed in the land and seen what was the end of those before them? They were stronger in might than themselves, and they plowed the land and cultivated it more than they themselves have cultivated it. And to them, their Messengers came with clear signs, and Allah did not wrong them, but they wronged themselves.