Quran 17:59
So that they have no excuses. The whole purpose of sending prophets is so that people don’t have any excuses on the day of judgement. Please see Quran verse 4:165.