Move one PS4 hard disk to another
A hard drive used on one PS4 cannot be used on another PS4 unless you format the drive first. This is a security measure put in place to prevent data from being used on anything other than the original console.
The hard drive itself can be used on another console, but you won't be able to use the data or games stored on it. It will need to be reset / formatted.