Khadija died three years before the Prophet (ﷺ) departed to Medina. He stayed there for two years or so and then he married `Aisha when she was a girl of six years of age, and he consumed that marriage when she was nine years old.
Sahih al-Bukhari Book 63, Hadith 121