قَوْلُهُ تَعَالَى: {وَإِذْ أَخَذَ رَبُّكَ مِنْ بَنِي آدَمَ مِنْ ظُهُورِهِمْ} [الأعراف: 172]
that 'Umar bin Al-Khattab was asked about this Ayah: And when your Lord brought forth from the Children of Adam, from their loins, their seed 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 (7:172).'" So 'Umar bin Al-Khattab said: "I heard the Messenger of Allah ﷺ being asked about it. So the Messenger of Allah ﷺ said: 'Indeed Allah created Adam, then He wiped his back with His Right Hand, and his offspring came out of him. So he said: "I created these for Paradise, and they will do the deeds of the people of Paradise." Then He wiped his back, and his offspring came out of him. So He said: "I created these for the Fire, and they will do the deeds of the people of the Fire." A man said: 'Then of what good is doing deeds O Messenger of Allah!' The Messenger of Allah ﷺ said: 'Verily, when Allah created a man for Paradise, He makes him perform the deeds of the people of Paradise, until he dies doing one of the deeds of the people of Paradise. So Allah will admit him into Paradise. And when He created a man for the Fire, He makes him perform the deeds of the people of the Fire until he dies doing the deeds of the people of the Fire. So Allah will enter him into the Fire.'" (Using translation from Tirmidhī 3075)
عَنْ هَذِهِ الْآيَةِ {وَإِذْ أَخَذَ رَبُّكَ مِنْ بَنِي آدَمَ مِنْ ظُهُورِهِمْ ذُرِّيَّتَهُمْ وَأَشْهَدَهُمْ عَلَى أَنْفُسِهِمْ أَلَسْتُ بِرَبِّكُمْ قَالُوا بَلَى شَهِدْنَا أَنْ تَقُولُوا يَوْمَ الْقِيَامَةِ إِنَّا كُنَّا عَنْ هَذَا غَافِلِينَ} [الأعراف 172] فَقَالَ عُمَرُ سَمِعْتُ رَسُولَ اللهِ ﷺ يُسْأَلُ عَنْهَا فَقَالَ رَسُولُ اللهِ ﷺ إِنَّ اللهَ ﷻ خَلَقَ آدَمَ فَمَسَحَ ظَهْرَهُ بِيَمِينِهِ فَاسْتَخْرَجَ مِنْهُ ذُرِّيَّةً فَقَالَ خَلَقْتُ هَؤُلَاءِ لِلْجَنَّةِ وَبِعَمَلِ أَهْلِ الْجَنَّةِ يَعْمَلُونَ ثُمَّ مَسَحَ ظَهْرَهُ فَاسْتَخْرَجَ مِنْهُ ذُرِّيَّةً فَقَالَ خَلَقْتُ هَؤُلَاءِ لِلنَّارِ وَبِعَمَلِ أَهْلِ النَّارِ يَعْمَلُونَ فَقَالَ رَجُلٌ يَا رَسُولَ اللهِ فَفِيمَ الْعَمَلُ؟ فَقَالَ رَسُولُ اللهِ ﷺ «إِنَّ اللهَ ﷻ إِذَا خَلَقَ الْعَبْدَ لِلْجَنَّةِ اسْتَعْمَلَهُ بِعَمَلِ أَهْلِ الْجَنَّةِ حَتَّى يَمُوتَ عَلَى عَمَلِ أَهْلِ الْجَنَّةِ فَيُدْخِلُهُ بِهِ الْجَنَّةَ وَإِذَا خَلَقَ الْعَبْدَ لِلنَّارِ اسْتَعْمَلَهُ بِعَمَلِ أَهْلِ النَّارِ حَتَّى يَمُوتَ عَلَى عَمَلِ أَهْلِ النَّارِ فَيُدْخِلُهُ بِهِ النَّارَ»