When sound waves travel from a rarer medium to a denser medium, its speed:
decreases
The speed of sound is inversely proportional to the density of the medium. The speed of sound decreases when the density increases. Hence, if the sound wave is travelling from a less dense to a denser medium, its speed will decrease, provided all other factors remain constant.