Ali bin Abu Talib reported,

The Prophet ﷺ said, and he then mentioned the same meaning, but he did not mention "as long as he has not yet eaten food."He added that Qatada said, "This applies as long as the two have not yet been fed solid food. Once they have been fed, both are washed alike."

Abu Dawud 378

Sahih

حدثنا ابن المثنى حدثنا معاذ بن هشام حدثني أبي عن قتادة عن أبي حرب بن أبي الأسود عن أبيه

عن علي بن أبي طالب رضي الله عنه

أن النبي ﷺ قال فذكر معناه ولم يذكر ما لم يطعم زاد قال قتادة هذا ما لم يطعما الطعام فإذا طعما غسلا جميعا

أبو داود 378صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Purification
Chapter
Urine of a boy that gets on clothing
Numbering
Darussalam 378
Abu Dawud 378