Sources
Peter Lombard, Sentences IV, distinction 2, chapter 1
«Iam ad sacramenta novae legis accedamus, quae sunt baptismus, confirmatio, panis benedictio, id est eucharistia, poenitentia, unctio extrema, ordo, coniugium.» “Let us now come to the sacraments of the new law, which are baptism, confirmation, the blessing of bread, that is, the eucharist, penance, extreme unction, orders and marriage.”
Final redaction about 1155-1158. Earlier still, the list of seven appears in the Sententiae divinitatis (school of Gilbert of Poitiers, 1140s) and in the Sentences of Roland. Edition: Brady, Grottaferrata, Spicilegium Bonaventurianum 4-5 (1971-1981), vol. II; PL 192, 841. Our translation.