Therefore, addressing him: ".
Therefore, addressing him: "...He said: "Verily, I have appointed you an Imam (leader) for mankind.'..." In order that this Divine gift would continue in his seed, and prophethood and 'Imamat' would not come to an end with his death: “... (Abraham) pleaded: ‘And of my offspring?’.
.." The answer to this question was: "...He (Allah) said: ‘My covenant does not include the unjust’." That is, I accepted your plea, but only for those of your offspring who are doers of righteous deeds and are pure and sinless i.e. those who are worthy of this rank. Explanation: What does 'words' mean?
Studying the verses of the Qur'an and noting the great and important deeds that Abraham (as) fulfilled and, hence, being appointed to the position of Imamat by Allah, leads us to the conclusion that the term / kalim-at / meaning 'words', or the Divine commandments by which Abraham (as) was tried, were not those of the usual sort. It clearly indicates that the tests were not connected with matters of ordinary reasoning or faith. They can never be considered ordinary tests.
The purpose of the 'words' was a series of heavy, hard, laborious, grave duties which were given to Abraham, the sincere pure prophet (as), and he was the only one who had the qualifications to successfully complete them. Some of those commandments were such is the followings: One trial was concerning the steadfastness of his faith in Allah. Abraham (as) was commanded through a vision in a dream to slay his on Ishmael. When he awoke, he unhesitatingly acted as he was bidden, (37: 105-108).
This indicates that Abraham (as) already knew that he was Allah's prophet and what he saw in the vision was no other than Allah's command. With such a certainty in his mind, he was willing to do, by Allah's command, something that no other loving or sensible father possibly could slay his own son. In another incident, by Allah's command, he took and left his wife and his infant son to an area of dry land, where no food and water or any inhabitants could be found.
He also stood against the idol-worshippers of Babylon and very bravely defended Monotheism in his historical trial after he had broken their idols. He miraculously held firm in faith and patience when he was thrown into the midst of fire. Recalcitrating, he emigrated from the land of idol-worshippers, and went to a faraway region in order to proclaim his prophecy.