Reports say he guaranteed to stand in prayer at night, fast by day and never judge in anger, and he fulfilled it despite Shaytan's attempts.
Qur'an: 'And Isma'il and Idris and Dhul-Kifl; all were of the patient. And We admitted them into Our mercy. Indeed, they were of the righteous' (21:85–86).
Scholars: Commentators such as Ibn Kathir report that an old prophet sought a successor who would pray at night, fast by day and not become angry. A man accepted and kept his word, and was called Dhul-Kifl, 'the one of the pledge'. These details come from tradition. (Ref: Ibn Kathir, Qisas al-Anbiya' (Dhul-Kifl), report from Mujahid)