Suuratul Al-A’raaf, Verses 172 – 174.
وَإِذْ أَخَذَ رَبُّكَ مِنۢ بَنِىٓ ءَادَمَ مِن ظُهُورِهِمْ ذُرِّيَّتَهُمْ وَأَشْهَدَهُمْ عَلَىٰٓ أَنفُسِهِمْ أَلَسْتُ بِرَبِّكُمْ
قَالُوا۟ بَلَىٰ ۛ شَهِدْنَآ ۛ أَن تَقُولُوا۟ يَوْمَ ٱلْقِيَـٰمَةِ إِنَّا كُنَّا عَنْ هَـٰذَا غَـٰفِلِينَ ﴿١٧٢
أَوْ تَقُولُوٓا۟ إِنَّمَآ أَشْرَكَ ءَابَآؤُنَا مِن قَبْلُ وَكُنَّا ذُرِّيَّةً مِّنۢ بَعْدِهِمْ ۖأَفَتُهْلِكُنَا بِمَا فَعَلَ ٱلْمُبْطِلُونَ ﴿١٧٣
وَكَذَٰلِكَ نُفَصِّلُ ٱلْـَٔايَـٰتِ وَلَعَلَّهُمْ يَرْجِعُونَ ﴿١٧٤
172. And (remember) when your Lord brought forth from the Children of Adam – from their loins – their offspring and made them testify as to themselves: “Am I not your Lord?” They said: “Yes! We testify,” lest you should say on the Day of Resurrection: “Verily, we have been unaware of this.”
173. Or lest you should say: “It was only our fathers aforetime who took others as partners in worship along with Allah, and we were (merely their) descendants after them; will You then destroy us because of the deeds of men who practised Al-Batil .
174. Thus do We explain the Ayat in detail, so that they may turn (unto the truth).