Al-A'raaf • BN-TAFSEER-IBN-E-KASEER
﴿ وَإِذْ أَخَذَ رَبُّكَ مِنۢ بَنِىٓ ءَادَمَ مِن ظُهُورِهِمْ ذُرِّيَّتَهُمْ وَأَشْهَدَهُمْ عَلَىٰٓ أَنفُسِهِمْ أَلَسْتُ بِرَبِّكُمْ ۖ قَالُوا۟ بَلَىٰ ۛ شَهِدْنَآ ۛ أَن تَقُولُوا۟ يَوْمَ ٱلْقِيَٰمَةِ إِنَّا كُنَّا عَنْ هَٰذَا غَٰفِلِينَ ﴾
“AND WHENEVER thy Sustainer brings forth their offspring from the loins of the children of Adam, He [thus] calls upon them to bear witness about themselves: "Am I not your Sustainer?" - to which they answer: "Yea, indeed, we do bear witness thereto!" [Of this We remind you,] lest you say on the Day of Resurrection, "Verily, we were unaware of this";”
Please check ayah 7:174 for complete tafsir.