The Holy Quran 5:102 — Surah Al-Ma'idah
Arabic text
قَدْ سَأَلَهَا قَوْمٌ مِّن قَبْلِكُمْ ثُمَّ أَصْبَحُوا۟ بِهَا كَـٰفِرِينَ
Translation
Indeed (a group of) people before you have asked (such questions of their Prophets) and then they became Kaafiroon (when they rejected the replies they received and did not practise what they were told).
Tafsir (excerpt) — Tafsir Usmani
In an authentic hadith it is related that earlier nations were destroyed on account of excessive questioning and disputing with their prophets.
Preview. The full text opens with JavaScript enabled.