Ice core samples were obtained with a 9 cm Kovacs corer during the Polarstern cruise PS131 on ice stations between mid-July and 6th of August 2022 in the marginal ice zone in the Fram Strait and at two ice stations on fast ice (Greenland). This dataset contains temperature profiles obtained by drilling holes in 4 cm intervals (for the upper 40cm) and 10 cm intervals for the rest and inserting a waterproof thermometer with a needle probe. For most of the samples, the whole ice layer was sampled, but for some, only the upper 40 cm were measured. However, the measured total ice thickness is included in the dataset. For more information of these measurements the user is referred to Chapter 8 of the cruise report.