124وَإِذِ ٱبْتَلَىٰٓ إِبْرَٰهِـۧمَ رَبُّهُۥ بِكَلِمَـٰتٍ فَأَتَمَّهُنَّ ۖ قَالَ إِنِّى جَاعِلُكَ لِلنَّاسِ إِمَامًا ۖ قَالَ وَمِن ذُرِّيَّتِى ۖ قَالَ لَا يَنَالُ عَهْدِى ٱلظَّـٰلِمِينَ
[124] Recall to mind that when his Lord put Abraham to test124 in certain things and he fulfilled all of them, He said, "I am going to make you the leader of mankind." Abraham humbly asked, "Does this promise apply to my descendants also?" He replied, "My promise does not apply to the transgressors."125
124At different places the Qur'an has described in detail the hard test to which Abraham was put before he was made the leader and guide of mankind. When he passed successfully through all those trials and proved himself fit and capable of performing this great responsibility, he was exalted to this high position. Ever since the Truth was revealed to him, his whole life was a series of sacrifices in its cause. He sacrificed everything which is valued in life, and encountered every kind of danger in the way of Truth.
125That is, "This promise shall apply only to those of your descendants who will be good and capable, and not to those who will be transgressors." Thus, obviously, the misguided children of Israel and the idolatrous children of Ishmael were not entitled to this promise.