The ruling on giving false testimony in a situation where no one is clearly harmed
Giving false testimony is absolutely forbidden. The evidence for this is the verse:
«فَاجْتَنِبُوا الرِّجْسَ مِنَ الْأَوْثَانِ وَاجْتَنِبُوا قَوْلَ الزُّورِ»
“So avoid the filth of idols, and avoid false speech.”
Abu Bakrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
“Shall I not inform you of the greatest of major sins?”
We said: “Yes, O Messenger of Allah ﷺ!” He said:
“Associating partners with Allah and disobeying one’s parents.”
He had been reclining, then sat upright and said:
“Beware, and false speech too; beware, and false testimony too.”
He kept repeating it so much that we wished: if only he would fall silent!