iblis had no authority over them and whatever happened was in order that we might know him who believes in the hereafter as distinct from him who is in doubt about it. your lord is watchful over everything.
وما كان له عليهم من سلطان إلا لنعلم من يؤمن بالآخرة ممن هو منها في شك وربك على كل شيء حفيظ