The answer to this may vary from level to level.
Physics is a quantitative science, based on the measurement of physical quantities. A physical quantity possesses at least two characteristics in common, one is the numerical magnitude and the other is the unit in which it is measured. Suppose you are measuring something, say the length of a rod, so you are taking a measurement with the help of scale. The scale has points that indicate the measured length. Suppose you find it to be $5.8$ meters. That means the magnitude of the length is $5.8$. So whenever it says magnitude that means the number in your measurement. While the meter is unit in which you are doing a measurement. Units are defined in the standard way so that everyone agrees on it so that the person in the USA or England agree on the magnitude.
When you get to some upper level of physics:
There are two types of physical quantity, you will encounter most in physics. One Vector and the other Scalar. Naively talking, Scalar is the one that has the only magnitude. Like: Mass, length, etc. On the other hand, vectors have magnitude and direction both. Like: Displacement or Velocity.
Here As you can when I said to contain the magnitude, the quantity automatically has a unit for it.
Now If you are at the elementary level and didn't encounter vectors etc., You should probably stick with the upper one.