Hamlet tells her, "Get thee to a nunnery"
In the first part of this scene, Hamlet tells Ophelia to be virtuous; in other ... he 
continues, asking her why she would want to give birth to children who sin.