Ar-Rum 30:49
وَإِن كَانُوا۟ مِن قَبْلِ أَن يُنَزَّلَ عَلَيْهِم مِّن قَبْلِهِۦ لَمُبْلِسِينَ
Wa-in kanoo min qabli an yunazzalaAAalayhim min qablihi lamubliseen
Although they were, before it was sent down upon them - before that, in despair.
even though they were absolutely hopeless before it was sent down to them.