In the Name of Allah, the Most Gracious, the Most Merciful.
As-salāmu ‘alaykum wa-rahmatullāhi wa-barakātuh.
Muhtaram Mufti Saheb,
In principle, if a child is born exactly 6 months or more after the marriage, the child will be considered to be born in wedlock and the child will be legitimate.[1]
The reference is shown below.
Hadrath Mufti Saheb conveys his Salams to you.
And Allah Ta’āla Knows Best
Mufti Saeed Ahmed Golaub
Islamic Solutions
Jamaica
References
[1]:(قَوْلُهُ: اتِّفَاقًا) أَيْ مِنْهُمَا، وَمِنْ أَبِي يُوسُفَ، فَالْخِلَافُ السَّابِقُ فِي غَيْرِ الزَّانِي كَمَا فِي الْفَتْحِ وَغَيْرِهِ (قَوْلُهُ: وَالْوَلَدُ لَهُ) أَيْ إنْ جَاءَتْ بَعْدَ النِّكَاحِ لِسِتَّةِ أَشْهُرٍ مُخْتَارَاتُ النَّوَازِلِ، فَلَوْ لِأَقَلَّ مِنْ سِتَّةِ أَشْهُرٍ مِنْ وَقْتِ النِّكَاحِ، لَا يَثْبُتُ النَّسَبُ، وَلَا يَرِثُ مِنْهُ إلَّا أَنْ يَقُولَ هَذَا الْوَلَدُ مِنِّي، وَلَا يَقُولُ مِنْ الزِّنَى خَانِيَةٌ. الدر المختار وحاشية ابن عابدين (رد المحتار) (3 / 49)