۞ وَإِذِ ٱبْتَلَىٰٓ إِبْرَٰهِـۧمَ رَبُّهُۥ بِكَلِمَـٰتٍ فَأَتَمَّهُنَّ ۖ قَالَ إِنِّى جَاعِلُكَ لِلنَّاسِ إِمَامًا ۖ قَالَ وَمِن ذُرِّيَّتِى ۖ قَالَ لَا يَنَالُ عَهْدِى ٱلظَّـٰلِمِينَ ١٢٤
And [mention, O Muḥammad], when Abraham was tried by his Lord with words [i.e., commands] and he fulfilled them. [Allāh] said, "Indeed, I will make you a leader for the people." [Abraham] said, "And of my descendants?" [Allāh] said, "My covenant does not include the wrongdoers."
Saheeh International · QuranEnc v1.1.2
Another translation: Al-Hilali & Muhsin Khan · QuranEnc v1.1.2
124. And (remember) when the Lord of Ibrâhîm (Abraham) [i.e., Allâh] tried him with (certain) Commands,[24] which he fulfilled. He (Allâh) said (to him), "Verily, I am going to make you an Imâm (a leader) for mankind (to follow you)." [Ibrâhîm (Abraham)] said, "And of my offspring (to make leaders)." (Allâh) said, "My Covenant (Prophethood) includes not Zâlimûn (polytheists and wrong-doers)."
[24] (V.2:124) It is said that those commands were many. Some of them are as follows: (A) To invite mankind to the Tauhîd (Islamic Monotheism). (B) To show mankind the Manâsik (See V.2:128). (C) To practise the characteristics of Al-Fitrah: Narrated Abu Hurairah رضي الله عنه: I heard the Prophet صلى الله عليه وسلم saying: Five practices are characteristic of Al-Fitrah: (1) Circumcision. (2) Shaving the pubic hair. (3) Cutting the moustaches short. (4) Clipping the nails. (5) and depilating the hair of the armpits. (Sahih Al-Bukhari, Hadith No.779, Vol.7) Narrated Ibn Umar رضي الله عنهما Allâh’s Messenger صلى الله عليه وسلم said: "Cut the moustaches short and leave the beard (as it is)." (Sahih Al-Bukhari, Hadith No.781, Vol.7) (D) It is also mentioned that Ibrâhîm عليه السلام was put to test: (1) When he عليه السلام was thrown in the Fire. (2) When he عليه السلام was ordered to slaughter his son. (Tafsir Ibn Kathir)