Do I have to do Ghusl again if a white substance comes out after doing Ghusl?
The answer
If you walked a considerable amount, slept or urinated prior to having a Ghusl (ritual bath), then you do not have to repeat the Ghusl.However, if you did not do any of the above before performing a Ghusl, then the fluid flowing after the Ghusl will nullify it, hence necessitating a repeat of the Ghusl.[1]
Depends on: Whether you walked, slept or urinated before the ghusl.
And Allah knows best.
Mufti Faraz Adam
References
1حاشية الطحطاوي على مراقي الفلاح شرح نور الإيضاح (ص: 97)
وتظهر الثمرة بما إذا اغتسل في مكانه وصلى ثم خرج بقية المني عليه الغسل عندهما لا عنده وصلاته صحيحة اتفاقا ولو خرج بعد ما بال وارتخى ذكره أو نام أو مشى خطوات كثيرة لا يجب الغسل اتفاقا
الفتاوى الهندية – ط. دار الفكر (1/ 14)
لو اغْتَسَلَ من الْجَنَابَةِ قبل أَنْ يَبُولَ أو يَنَامَ وَصَلَّى ثُمَّ خَرَجَ بَقِيَّةُ الْمَنِيِّ فَعَلَيْهِ أَنْ يَغْتَسِلَ عِنْدَهُمَا خِلَافًا لِأَبِي يُوسُفَ رَحِمَهُ اللَّهُ تَعَالَى
الدر المختار وحاشية ابن عابدين (رد المحتار) (1/ 160)
وَكَذَا لَوْ خَرَجَ مِنْهُ بَقِيَّةُ الْمَنِيِّ بَعْدَ الْغُسْلِ قَبْلَ النَّوْمِ أَوْ الْبَوْلِ أَوْ الْمَشْيِ الْكَثِيرِ نَهْرٌ أَيْ لَا بَعْدَهُ؛ لِأَنَّ النَّوْمَ وَالْبَوْلَ وَالْمَشْيَ يَقْطَعُ مَادَّةَ الزَّائِلِ عَنْ مَكَانِهِ بِشَهْوَةٍ فَيَكُونُ الثَّانِي زَائِلًا عَنْ مَكَانِهِ بِلَا شَهْوَةٍ فَلَا يَجِبُ الْغُسْلُ اتِّفَاقًا زَيْلَعِيٌّ
Based on the Hanafi school and on the question as it was asked. Another mufti may reach a different conclusion. Read the disclaimer.