She hears it from Macbeth after he encounters the witches. He writes her a letter recounting the prophecy.