Hafetz Haim Halachot
Halacha 172 / 215

Hilchos Rechilus, chapter 5, section 5

Stay far away from asking people what someone said about you (unless there is a clear benefit, such as protecting yourself from him).

People with this habit cause so much damage, and break so many negative and positive mitzvos, that they cannot be counted.