Hilchos Rechilus, chapter 1, section 8

What should one answer? If someone asks, “What did so and so say about me?” If one give a satisfactory answer without lying one should do so, and if not, one may even tell an absolute falsehood. However one may not take a false oath for this purpose – see Be’er Mayim Chayim.