A man who recovered after being paralysed said watching a marathon while in hospital motivated him to take up the challenge.