Originating in the John Milton's poem “Comus”; see 1634 quotation. The proverb Skripteraro: La funkcio, kiun vi specifis, ne ekzistis.Skripteraro: Tia modulo ne ekzistas. is an allusion to the relevant passage.
Was I deceived, or did a sable cloud / Turn forth her silver lining on the night? / I did not err: there does a sable cloud / Turn forth her silver lining on the night, / And casts a gleam over this tufted grove.
↑“every cloud has a silver lining” in Stuart Berg Flexner and Doris Flexner, Wise Words and Wives' Tales: The Origins, Meanings, and Time-Honored Wisdom of Proverbs and Folk Sayings, Olde and New, Avon Books (1993), ISBN 0380762382, page 52. Quoted in “Re: Every cloud has a silver lining”, phrases.org.uk.