When Prophet Muhammad PBUH got 25, he got a proposal from Khadija for marriage which he accepted and thus they got married. Khadija was 40 years of age at the time of marriage.