Question: why surah ikhlas was revealed?
Answer: Surah Al-Ikhlas was revealed to Prophet Muhammad (may the mercy and blessings of Allah be upon him) during the early days of Islam. The polytheists and pagans of Mecca one day approached and challenged him saying, “Give us the genealogy of your Lord.” It was then that Allah revealed this surah.