A man was stabbed in front of his three-year-old daughter as he headed to hospital to visit his wife and newborn son.