The pledge and the attempt to anger
It is related on the authority of Mujahid an interpretive account that is not connected to the incident. This chain relates that when al-Yasa‘ grew old, he wanted to test who would succeed him in managing the affairs of the people.
Among the wording of the report that is not established, attributed to al-Yasa‘, is: ‘Who will undertake for me three things so that I may make him my successor: that he fasts the day, stands in prayer the night, and does not become angry?’ Then a man stood and accepted, and he asked him: ‘Do you fast the day, stand in prayer the night, and not become angry?’ On the following day he repeated the request, and the same man stood, so he made him his successor.
And the narration relates that Iblis came to him in the form of an old man complaining of injustice at the time of his midday rest, and he prolonged it with him until sleep escaped him. Then he promised him to look into his right at the time of judgment, but he did not come.

