Translation:

37. Who is more unjust than one who invents a lie against Allah or rejects his signs? For such their portion appointed must reach them from the Book (of decrees); until when Our messengers (of death) arrive and take their souls they say: "where are the things that ye used to invoke besides Allah?" They will reply "they have left us in the lurch" and they will bear witness against themselves that they had rejected Allah.

Notes (Tafseer)

1018. It must not be supposed that the rebels against Allah would at once be cut off in this life for their sins. They will get the portion allotted to them, including the good things of life and the chance of rcpentance and reformation, during their probationary period on this earth. During that period they will have a full run. After that period expires, they will be called to account. They will themselves see that the false things, in which they put their trust, were false, and they will confess their sin, but it will be too late.