All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
Continuity (muwālāh) means washing each part of the body immediately after the previous one, without leaving a gap long enough for the first part to dry before the second is washed. According to the Shāfiʿī school, continuity is a recommended act (sunnah) in both the ritual bath (ghusl) and ablution (wuḍūʾ) — it is not obligatory.
It is stated in Nihāyat al-Muḥtāj ilā Sharḥ al-Minhāj: "Likewise, continuity in the ritual bath is recommended, just as it is in ablution."
Accordingly, continuity in the ritual bath is a sunnah. And Allah the Almighty knows best.