The traditional preparation methods of quantum dots (QDs) for temperature sensing are limited to self-crystallization and secondary heat treatment processes, which requires precise control of the experimental equipment and conditions. In this paper, CsPbBr3 QDs are successfully obtained by friction crystallization in the prepared precursor glass. The results show that when the glass network structure is subjected to continuous mechanical impact, the thermal kinetic energy of the fracture surface increases. Therefore, the combination of relatively loose structure and local thermal energy supply more excellent space for the nucleation and growth of CsPbBr3 QDs. Furthermore, the PL enhancement is confirmed to be occur in Sm3+ ions doped CsPbBr3 QDs, which is due to the increase of density of exciton states near the edge of the band, thus facilitating radiative recombination. Significantly, this material has a favorable performance of temperature sensing and thermal stability, with the maximum relative sensitivity of 3.09 % K−1. This work provides an energy-saving and green way for the preparation of Sm3+ ions doped QDs, and the materials provide potential applications in the field of temperature sensing.