Rabia explained that the meaning of the Prophet's ﷺ statement, "There is no valid ablution for one who does not mention the name of Allah over it," refers to a person who performs ablution or a full bath without intending the ablution for prayer or the bath for ritual impurity.
حدثنا أحمد بن عمرو بن السرح حدثنا ابن وهب
وذكر ربيعة أن تفسير حديث النبي ﷺ لا وضوء لمن لم يذكر اسم الله عليه أنه الذي يتوضأ ويغتسل ولا ينوي وضوءا للصلاة ولا غسلا للجنابة