Q.
From evolutionary point of view, retention of the female gametophyte with developing young embryo on the parent sporophyte for some time, is first observed in :
In Pteridophyte, megaspore is retained for some times in female gametophyte, however the permanent retention is required for seed formation in Gymnosperms.
That's why Pteridophytes exhibit precursor to seed habit only.