It is narrated from Sayyida Umm Qais (may Allah be pleased with her) that she brought her small child, who had not yet eaten food, to the Messenger of Allah (peace be upon him). The Prophet (peace be upon him) seated the child in his lap, and the child urinated on his (peace be upon him) clothes. So the Prophet (peace be upon him) called for water and sprinkled it over the spot, but did not wash the garment.
Related hadith on this topic