It is narrated from Sayyidah Aishah (may Allah be pleased with her): "A woman does not remain pregnant for more than two years, not even by the amount of time it takes the shadow of a spindle's rod to turn."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15552