Miscarriage

Zahra.

As salaam alaikum sisters, I had a question I was hoping someone could shed some light on. After a child is born I understand that we should abstain from sex for 40 days but is there any type of ruling for a miscarriage? Would the same 40 days apply? Jak for your response. ❤️