It is an oleander hawk-moth caterpillar, Daphnis nerii. The brown colouration shows that it is getting close to pupating (earlier, it is green; and the last colouration before pupation is darker brown)
Well done for saving it; the adult is a marvel of Mother Nature's artistry.
Mike