Holding a Child While Praying

Is offering prayer while holding a child valid? What is the evidence?

...