ORIGIN OF THE DU'A: Kumayl Ibn Ziyad Nakha'i was a confidant amongst the companions of Imam Ali Ibn Abi Talib(as.) and this sublime Du'a was first heard from the beautiful, though anguished, voice of Imam Ali.
According to Allama Majlisi (on whom be Allah's Mercy) Kumayl had attended an assembly in the Mosque at Basra which was addressed by Imam Ali in the course of which the night of the 15th of Shaban was mentioned.
Imam Ali said-"Whosoever keeps awake in devoutness on this night and recites the Du'a of Prophet Khizr, undoubtedly that person's supplication will be responded to and granted. When the assembly at the Mosque had dispersed, Kumayl called at the house where Imam Ali was staying, and requested him to acquaint him with Prophet Khizr's "Du'a". Imam Ali asked Kumayl to sit down, record and memorise the "Du'a" which Imam Ali dictated to Kumayl.
Imam Ali then advised Kumayl to recite this "Du'a" on the eve of (i.e.evening preceding) every Friday, or once a month or at least once in every year so that, added Imam Ali, "Allah may protect thee from the evils of the enemies and the plots contrived by impostors. O' Kumayl! in consideration of thy companionship and understanding, I grant thee this honour of entrusting this "Du'a" to thee."