He did many things similar to those mentioned above and each of those trials was...
He did many things similar to those mentioned above and each of those trials was, indeed, heavy and difficult for a man to undertake, but he, with the power of Faith, was able to perform them successfully thereby proving himself worthy of the position of 'Imamat', Divine leadership.
Eligibility for Imamat Precisely speaking, it is understood from the above mentioned verse that the position and rank of Imamat which was bestowed upon Abraham (as), only after successfully enduring those frequent difficult trials, was above and beyond the rank of prophethood.
The primary sense of meaning of the term / imam / is that of being foremost, but it also has other different meanings including: A) Leadership in the worldly social affairs of people, (as the Sunnite school of thought believes). B) Authority over the religious affairs of people in this world (as some others of them have interpreted).
C) Responsibility of bringing religious duties into action, whether it is through the establishment of government in its vast meaning or performing the commandments and ordinances of Allah, and the execution of social justice along with the training of souls, both outwardly and inwardly. The rank of Imamat is higher than the rank of prophethood, because prophethood and messengership is only a matter of receiving some commandments from Allah and preaching them as glad tidings and warnings.
All of these are true in the case of Imamat, in addition to practicing the Divine ordinances and training the souls of individuals, outwardly and inwardly. (It is clear, of course, that many of the prophets had had the rank of Imamat, too.) Imamat, in fact, is the position of presenting the aims of religion practically, and guidance is 'attaining the ideal' not merely ' showing the way’. Besides that, Imamat includes 'Divine Guidance', too.
It means the innate quality of the Imam's spiritual influence and the attracting glow of his pureness encompassing, deeply touching, and truly affecting the realm of receptive people's hearts which results in their spiritual guidance. From this point of view, an Imam is just like the sun that, with its life-giving light, fosters and gives vitality to all living creatures. The function of an Imam in spiritual aspects is the same as the physical function of the sun.