Aim for seven to eight weeks old. At that age a hedgehog is weaned and settled enough to handle the move without the risks that come with taking one too young.
Always buy from a breeder or shop that can tell you the exact date of birth rather than guessing.