This is reported from the Prophet ﷺ, who said, "If any one of you, when he approaches his wife, says, 'In the name of Allah. Allah, keep Satan away from me and keep Satan away from what You bestow upon us,' then if a child is decreed for them, Satan will never harm that child."
حدثنا سفيان عن منصور عن سالم عن كريب
يبلغ به النبي ﷺ لو أن أحدهم إذا أتى أهله قال بسم الله اللهم جنبني الشيطان وجنب الشيطان ما رزقتنا فقضي بينهما ولد ما ضره الشيطان