This invention discloses a compositino of rare earth magnetic material of high working temperature and high thermo stabilizing with the general formula of Smx-oRo(Fe1-yMy)100-x-*N* in which, R1 is one or more one rare earth elements not including Sm, M is one or several in Nb, V, Ti, Co, Cr, Mo, Mn, Ni, Ca, Zr, Ta, Ag, Au, Al, Pb, Cu and Si, N is nitrogen, Sm is samarium, due to the exchange couple action of nm crystal retentive phase of Sm2R2-x(Re1-*M*)17Nbeta and soft magnetic phase of 2-Fe, the invented magnetic powers and adhesive magnts have high coercive force and high saturated magnetization intensity, especially the high coercive force.