After confessing your sins to a Catholic priest, he will inevitably say something like, "Now you can say your act of contrition."
This is a necessary part of confession, as it expresses your own "contrition," or "sorry" for your sins.
The Catechism of the Catholic Church offers a brief explanation of this aspect of confession: "Among the penitent's acts, contrition occupies first place. Contrition is 'sorrow of the soul and detestation for the sin committed, together with the resolution not to sin again.'"
Strictly speaking there is no "right" way or "correct" act of contrition.
However, the Church does give a few options. Here is the standard one in the Compendium of the Catechism of the Catholic Church.
Or you can simply recite a verse from the Bible.
Whatever prayer you use, be sure that it comes from the heart.