Kumayl ibn Ziyad Nakhai, a confidant of Ali ibn Abi Talib, 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 Shaaban was mentioned.
Ali ibn Abu Talib is claimed to have said:
"Whosoever keeps awake in devoutness on this night and recites the Dua of Prophet Khidhr, undoubtedly that persons supplication will be responded to and granted."
When the assembly at the Mosque had dispersed, Kumayl called at the house where Ali was staying, and requested him to acquaint him with Prophet Khidhrs supplication. Ali asked Kumayl to sit down, record and memorise the dua which he dictated to Kumayl.
Ali then advised Kumayl ibn Ziyad Nakhai to recite this dua on the eve of (i.e. evening preceding) every Friday, or once a month or at least once in every year so that, added 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 dua to thee."