According to Rayleigh's law for scattering the amount of scattering of the light is inversely proportional to the fourth power of the wavelength.
From the relation between scattering and wavelength, we understand that shorter wavelengths scatter more. Since blue light has a lesser wavelength than red light it scatters more.