Sure Ghafir

40:34

وَلَقَدْ جَآءَكُمْ يُوسُفُ مِن قَبْلُ بِٱلْبَيِّنَٰتِ فَمَا زِلْتُمْ فِى شَكٍّۢ مِّمَّا جَآءَكُم بِهِۦ ۖ حَتَّىٰٓ إِذَا هَلَكَ قُلْتُمْ لَن يَبْعَثَ ٱللَّهُ مِنۢ بَعْدِهِۦ رَسُولًۭا ۚ كَذَٰلِكَ يُضِلُّ ٱللَّهُ مَنْ هُوَ مُسْرِفٌۭ مُّرْتَابٌ

Bereits zuvor kam Yusuf zu euch mit den klaren Beweisen. Ihr aber bliebt weiterhin im Zweifel über das, was er euch gebracht hatte. Als er dann gestorben war, sagtet ihr: ,Allah wird nach ihm keinen Gesandten mehr erstehen lassen. So läßt Allah in die Irre gehen, wer maßlos und voller Zweifel ist."

Tafsir 40:34

Joseph came to you before Moses with clear proof for the oneness of Allah, but you remained in doubt and denial of what he brought, until when he died you increased in doubt and uncertainty, and you said: “Allah will never send a messenger after him”. Just as you are misguided from the truth, Allah leads astray every person who trespasses the limits of Allah and doubts His oneness.