I recently heard of a case where a couple were planning on getting divorced: the wife was pregnant and they were given a psak (via the Beth Din) that the husband can not give her a get until the baby ...
As discussed in this question, the Talmud tells us that 40 days before someone is born, a heavenly voice calls out "This person is destined for so-and-so". Not sure if anyone can answer this, but ...
Where's the g'mara about Yishay's divorce (or was it separation?) and David's conception, please?