24 It is first and foremost for the foregoing reasons that, according to the teaching of the Church, holy virginity surpasses marriage in excellence. Our Divine Redeemer had already given it to His disciples as a counsel for a more perfect life. St. Paul, after having said that the father who gives his daughter in marriage "does well," adds immediately "and he that gives her not, does better." Several times in the course of his comparison between marriage and virginity the Apostle reveals his mind, and especially in these words: "for I would that all men were even as myself. . . But I say to the unmarried and to widows: it is good for them if they so continue, even as I." Virginity is preferable to marriage then, as We have said, above all else because it has a higher aim: that is to say, it is a very efficacious means for devoting oneself wholly to the service of God, while the heart of married persons will remain more or less "divided."
Source: Sacra Virginitas (Vatican.va)