In season 3, eipsode 22 Z'ha'dum; during the opening Sheridan has a dream about the Icarus and his deceased wife Anna.
And @17:15 into the episode, Anna (much alive) describes her meeting the shadows. In both of these flashes, may be what you are thinking about Kosh.
Dr. Chang is the one...