Who is a Hasid? I got lost in the sources
Shalom to all, baruch Hashem (ב"ה),
In the book Seven Gates of Righteous Knowledge, footnote 186 mentions that the saying "Who is a Hasid? One who goes beyond the measure of the law" can be found in the commentary of Rashi on Pirkei Avot 6:1. However, upon reviewing the mishnah itself and the commentary of Rashi available in English, I could not locate this statement explicitly.
Additionally, the same footnote refers to Rambam's introduction to Pirkei Avot, chapter 4, as a source for this teaching. While the Rambam does discuss similar ideas in that chapter, his explanation seems to frame the concept differently, describing the deviation beyond the measure of the law as a means to correct one's behavior due to the natural inclination toward the evil inclination (yetzer hara).
Where can I find the saying "Who is a Hasid?" explicitly stated in these or other sources? Perhaps I missed something in my reading of the texts or encountered a poorly translated version. Apologies in advance for any confusion, and thank you for your guidance.
Todah rabah and kol tuv!