Surah Al-A'raaf, Verse 172
Translation — Sahih International
And [mention] when your Lord took from the children of Adam - from their loins - their descendants and made them testify of themselves, [saying to them], "Am I not your Lord?" They said, "Yes, we have testified." [This] - lest you should say on the day of Resurrection, "Indeed, we were of this unaware."
Source
Kur'an-ı Kerim, A'râf Suresi 7:172
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/7-suresi-172-ayet