The religion of Islam put an end to ignorance:
At the time of the sending of the Messenger of Allah ﷺ, the whole world had gone astray. People worshipped idols, and those who considered themselves and called themselves People of the Book had taken their priests and monks as the owners and authorities over what is lawful and unlawful.
Adi (may Allah be pleased with him) says: I came into the presence of the Messenger of Allah ﷺ with a cross hanging from my neck. The Prophet ﷺ said: “O Adi! ألق هذا الوثن من عنقك ‘Throw this idol off your neck.'” And when I reached the Prophet ﷺ, he was reciting Surah al-Tawbah. When he reached this verse:
﴿اتَّخَذُوا أَحْبَارَهُمْ وَرُهْبَانَهُمْ أَرْبَابًا مِّن دُونِ اللَّهِ﴾
“They have taken their scholars and their monks as lords besides Allah.”
I said: O Messenger of Allah! We have not made them lords. He said: “Why not? Is it not the case that whatever forbidden thing they made lawful, you regarded it as lawful, and whatever lawful thing they made forbidden, you regarded it as forbidden?” I said: “Yes, that is so.”
The Prophet ﷺ said: “That is their worship.”
The muhaddith al-Albani has declared this hadith hasan (good).
The sixth century CE, before the sending of the Prophet ﷺ, is counted as the darkest and lowest period in human history; indeed it is called the period of Jahiliyyah (ignorance). The historians have recorded:
The majority of the Jews and Christians had abandoned the original Judaism and Christianity. And those few who remained firm on the religion they had received held the trust of the religion close to their chests, withdrew from the inclinations of life, and took refuge in monasteries, churches and the solitude of the deserts. Moral decline had reached such a level among some nations that Yazdgerd, who was the king of Iran in the middle of the fifth century, kept his own daughter as his wife and then killed her. It is in Tarikh al-Tabari that Bahram, who ruled in the sixth century CE, had a marital relationship with his own sister.
Insani Duniya par Musalmanon ke Uruj o Zawal ka Asar, p.: 48
Every tribe of the Arabs had its own idol, to the point that they would worship ordinary stones, and if they found a better one than the first, they would leave the first and worship the other. The state of human reason was strange indeed. It is in Sahih al-Bukhari that Abu Raja al-Utaridi (may Allah be pleased with him) says:
كنا نعبد الحجر، فإذا وجدنا حجرا هوا أخير منه ألقيناه وأخذنا الآخر فاذا لم نجد حجرا جمعنا جثوة من تراب، ثم جئنا بالشاة، فحلبناه عليه
“We used to worship a stone. If we found a stone better than it, we would throw away the first and take the other stone and begin worshipping it. And if we did not find a stone, we would make a heap of earth, then bring a goat, milk it over it, and then circumambulate it.”
In such conditions, Islam granted humanity the honour of being human. It turned them away from the idols of Azar and set them on the path of the Tawhid of the Lord of the worlds.
﴿قَد تَّبَيَّنَ الرُّشْدُ مِنَ الْغَيِّ ۚ فَمَن يَكْفُرْ بِالطَّاغُوتِ وَيُؤْمِن بِاللَّهِ فَقَدِ اسْتَمْسَكَ بِالْعُرْوَةِ الْوُثْقَىٰ لَا انفِصَامَ لَهَا﴾
“Guidance has become distinct from error. So whoever rejects Taghut and believes in Allah has indeed grasped the most trustworthy handhold, which will never break.”