Assalaamu alaykum. My husband broke down early morning on the way to work. He was very desperate to relieve himself and couldn’t hold it in so went behind the bushes and defecated. He cannot remember whether he said the toilet dua and now concerned if any harm will come to him due his forgetfulness.
All perfect praise be to Allah, The Lord of the Worlds. I testify that none is worthy of worship except Allah and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and messenger.
The supplication for entering the toilet is a recommended and not obligatory, so there is no sin on whoever does not recite it, and he will not be harmed, Allah willing.
If your husband has relieved himself at a place where people are not harmed by it, then there is no sin on him.
Allah knows best.
You can search for fatwa through many choices