Surah Al-Furqan, ayah 72

25:72

وَٱلَّذِينَ لَا يَشۡهَدُونَ ٱلزُّورَ وَإِذَا مَرُّواْ بِٱللَّغۡوِ مَرُّواْ كِرَامٗا ٧٢

Walladhīna lā yashhadūnaz-zūra wa idhā marrū bil-laghwi marrū kirāmā

And [they are] those who do not testify to falsehood, and when they pass near ill speech, they pass by with dignity.