Prayer and Etiquette of Istinja After Defecation According to Sunnah
Istinja is an important part of cleansing after urinating or defecating. After cleaning the impurity, Muslims are encouraged to recite the prayer: "Allaahumma hashshin farjii minal fawaahisy wathahhir qalbii minan nifaaq" (O Allah, guard my private parts from immoral acts and purify my heart from hypocrisy).
Tools that can be used for istinja are water (primary method) or stones (istijmar) at least three stones, as well as other clean solid objects like tissue. It's forbidden to use bones or dry animal dung.
The etiquette to observe includes reciting the prayer when entering and leaving the toilet, not facing or turning your back to the qibla, using the left hand, cleaning thoroughly, and not talking unnecessarily or bringing revered items like a mushaf of the Quran. Prayer when leaving the toilet: "Alhamdulillahilladzi adzhaba 'annil adzaa wa 'aafaanii" (Praise be to Allah who has rid me of the filth and granted me health).
https://mozaik.inilah.com/ibad