Mishkat al-Masabih 121
Ibn ‘Abbas reported the Prophet as saying:
God made the covenant from Adam’s back in Na‘man, i.e. ‘Arafa, and brought forth from his loins all his offspring whom He created and scattered before Him like small ants. He then spoke to them face to face saying, “Am I not your Lord?’ They replied, “Yes, we testify this.” [It was] lest you should say on the day of resurrection, “We were neglectful of this,” or should say, “Our fathers were polytheists before us and we were an offspring after them. Wilt Thou destroy us for what the workers of vanity did?” 1 Ahmad transmitted it. 1 Quran, vii, 172f.
وَعَنِ ابْنِ عَبَّاسٍ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: " أَخذ الله الْمِيثَاق من ظهر آدم بنعمان يَعْنِي عَرَفَة فَأخْرج من صلبه كل ذُرِّيَّة ذَرَاهَا فَنَثَرَهُمْ بَيْنَ يَدَيْهِ كَالذَّرِّ ثُمَّ كَلَّمَهُمْ قِبَلًا قَالَ: (أَلَسْتُ بِرَبِّكُمْ قَالُوا بَلَى شَهِدْنَا أَنْ تَقُولُوا يَوْمَ الْقِيَامَةِ إِنَّا كُنَّا عَنْ هَذَا غافلين أَوْ تَقُولُوا إِنَّمَا أَشْرَكَ آبَاؤُنَا مِنْ قَبْلُ وَكُنَّا ذُرِّيَّةً مِنْ بَعْدِهِمْ أَفَتُهْلِكُنَا بِمَا فَعَلَ المبطلون)
رَوَاهُ أَحْمد