If a ray passing from one medium to other medium then it will refract either away from normal or towards the normal
This all we can find out using snell's law

now if we wish to find the angle inside other medium then we will have

now if second medium is given optical denser
so we will have

so here we will have

so here we can say that ray will bend toward the normal as angle is decreased here