And remember that Abraham was tried by his Lord with certain commands which he fulfilled; He said: "I will make thee an Imam to the nations." He pleaded: "And also (Imams) from my offspring!" He answered: "But my promise is not within the reach of evil-doers."(1) [Translation of al-Baqarah,2:124 by Abdullah Yusuf Ali]
Note (1): Kalimat: literally "words" here used in the mystic sense of God's Will or Decree or Purpose. This verse may be taken to be the sum of the verses following. In everything Abraham fulfilled God's wish: he purified God's house; he built the sacred refuge of the Ka'ba; he submitted his will to God's, and thus became the type of Islam. He was promised the leadership of the world; he pleaded for his progeny, and his prayer was granted, with the limitation that if his progeny was false to God, God's promise did not reach the people who proved themselves false.