It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he did not cut off the hand for snatching, and he did cut off the hand for theft committed in secret.