is it ok to give baby water ?

my baby is 3 months now and my boyfriend mother gave her 2oz of nursery water to “clean her system” I always heard never give the baby water but it seems like people in my family tell me to do things the doctor say dont do .. once they gave her the water she instantly shitted so I thought it cleanse her system