عَنْ رُفَيْعٍ أَبِي الْعَالِيَةِ عَنْ أُبَيِّ بْنِ كَعْبٍ رَضِيَ اللَّهُ عَنْهُ فِي قَوْلِ اللَّهِ عَزَّ وَجَلَّ: «وَإِذْ أَخَذَ رَبُّكَ مِنْ بَنِي آدَمَ مِنْ ظُهُورِهِمْ ذُرِّيَّاتِهِمْ وَأَشْهَدَهُمْ عَلَى أَنْفُسِهِمْ» الْآيَةَ، قَالَ:جَمَعَهُمْ فَجَعَلَهُمْ أَرْوَاحًا، ثُمَّ صَوَّرَهُمْ فَاسْتَنْطَقَهُمْ فَتَكَلَّمُوا، ثُمَّ أَخَذَ عَلَيْهِمُ الْعَهْدَ وَالْمِيثَاقَ وَأَشْهَدَهُمْ عَلَى أَنْفُسِهِمْ: أَلَسْتُ بِرَبِّكُمْ؟ قَالَ: فَإِنِّي أُشْهِدُ عَلَيْكُمُ السَّمَاوَاتِ السَّبْعَ وَالْأَرَضِينَ السَّبْعَ، وَأُشْهِدُ عَلَيْكُمْ أَبَاكُمْ آدَمَ عَلَيْهِ السَّلَامُ أَنْ تَقُولُوا يَوْمَ الْقِيَامَةِ لَمْ نَعْلَمْ بِذَلِكَ، اعْلَمُوا أَنَّهُ لَا إِلَهَ غَيْرِي وَلَا رَبَّ غَيْرِي فَلَا تُشْرِكُوا بِي شَيْئًا، إِنِّي سَأُرْسِلُ إِلَيْكُمْ رُسُلِي يُذَكِّرُونَكُمْ عَهْدِي وَمِيثَاقِي وَأُنْزِلُ عَلَيْكُمْ كُتُبِي، قَالُوا: شَهِدْنَا بِأَنَّكَ رَبُّنَا وَإِلَهُنَا لَا رَبَّ غَيْرَكَ، فَأَقَرُّوا بِذَلِكَ.
It is narrated from Sayyiduna Ubayy ibn Ka'b (may Allah be pleased with him) that, explaining the interpretation of Allah Almighty's statement «وَإِذْ أَخَذَ رَبُّكَ مِنْ بَنِي آدَمَ مِنْ ظُهُورِهِمْ ذُرِّيَّاتِهِمْ وَأَشْهَدَهُمْ عَلَى أَنْفُسِهِمْ», he says: Allah Almighty gathered them in the form of souls, then made their images and called them forth, so they spoke. Then He took a firm covenant from them and made them witnesses over themselves and said: "Am I not your Lord? I make the seven heavens and the seven earths witnesses over you, and I also make your father Adam (peace be upon him) a witness over you, so that you may not say on the Day of Resurrection that we had no knowledge of this matter. Know that there is no deity nor Lord besides Me, so do not associate anyone with Me. Soon I will send My messengers to you; they will remind you of My promise and covenant, and I will also send down books upon you." All of them replied: "We bear witness that You alone are our Lord and deity; we have no Lord besides You." Thus, they acknowledged this matter.