عَنْ مُسْلِمِ بْنِ يَسَارٍ الْجُهَنِيِّ أَنَّ عُمَرَ بْنَ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ سُئِلَ عَنْ هَذِهِ الْآيَةِ {وَإِذْ أَخَذَ رَبُّكَ مِنْ بَنِي آدَمَ مِنْ ظُهُورِهِمْ ذُرِّيَّتَهُمْ} فَقَالَ عُمَرُ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ سُئِلَ عَنْهَا فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ ((إِنَّ اللَّهَ خَلَقَ آدَمَ ثُمَّ مَسَحَ ظَهْرَهُ بِيَمِينِهِ وَاسْتَخْرَجَ مِنْهُ ذُرِّيَّةً فَقَالَ خَلَقْتُ هَؤُلَاءِ لِلْجَنَّةِ وَبِعَمَلِ أَهْلِ الْجَنَّةِ يَعْمَلُونَ ثُمَّ مَسَحَ ظَهْرَهُ فَاسْتَخْرَجَ مِنْهُ ذُرِّيَّةً فَقَالَ خَلَقْتُ هَؤُلَاءِ لِلنَّارِ وَبِعَمَلِ أَهْلِ النَّارِ يَعْمَلُونَ)) فَقَالَ رَجُلٌ يَا رَسُولَ اللَّهِ فَفِيمَ الْعَمَلُ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ ((إِنَّ اللَّهَ عَزَّ وَجَلَّ إِذَا خَلَقَ الْعَبْدَ لِلْجَنَّةِ اسْتَعْمَلَهُ بِعَمَلِ أَهْلِ الْجَنَّةِ حَتَّى يَمُوتَ عَلَى عَمَلٍ مِنْ أَعْمَالِ أَهْلِ الْجَنَّةِ فَيُدْخِلَهُ بِهِ الْجَنَّةَ وَإِذَا خَلَقَ الْعَبْدَ لِلنَّارِ اسْتَعْمَلَهُ بِعَمَلِ أَهْلِ النَّارِ حَتَّى يَمُوتَ عَلَى عَمَلٍ مِنْ أَعْمَالِ أَهْلِ النَّارِ فَيُدْخِلَهُ بِهِ النَّارَ))
It is narrated from Muslim bin Yasar al-Juhani that Sayyiduna Umar bin Khattab (may Allah be pleased with him) was asked about this verse: {وَاِذْ اَخَذَ رَبُّکَ مِنْ بَنِیْ آدَمَ مِنْ ظُھُوْرِھِمْ ذُرِّیَّتَھُمْ}. He said: I myself heard that the Messenger of Allah (peace and blessings be upon him) was asked about this verse, and he (peace and blessings be upon him) said: Indeed, Allah Almighty created Adam (peace be upon him), touched his back with His right hand, and from it brought forth his offspring and said: I have created these for Paradise and with the deeds of the people of Paradise. Then He touched his back and brought forth more offspring and said: I have created these for the Fire and with the deeds of the people of Hell. A man said: O Messenger of Allah! Then what is the use of deeds? He (peace and blessings be upon him) said: When Allah Almighty creates a servant for Paradise, He uses him for the deeds of the people of Paradise, until he dies upon the deeds of the people of Paradise, and thus He admits him to Paradise. And when Allah Almighty creates a servant for the Fire, He uses him for the deeds of the people of Hell, until he dies upon the deeds of the people of Hell, and He admits him to Hell.