How can we deduce C (mass concentration) = 1000 × ρ (density) × w (mass fraction) / M (molar mass)

How can we deduce C (mass concentration) = 1000 × ρ (density) × w (mass fraction) / M (molar mass)

The quantity and concentration of substance is defined as the quantity of solute contained in one liter of solution. So we assume that if we take 1 liter of solution, then the volume is 1000 ml, and its mass is 1000 ρ, [because the density unit here is g / ml], where the mass of solute is 1000 ρ W, and then divide by the molar mass m of solute, that is the quantity of solute contained in one liter of solution, Of course, that is the concentration of the substance in this solution