Aslam

Surah An-Nur — 24:17
يَعِظُكُمُ ٱللَّهُ أَن تَعُودُواْ لِمِثۡلِهِۦٓ أَبَدًا إِن كُنتُم مُّؤۡمِنِينَ
Allah forbids you from ever doing something like this again, if you are ˹true˺ believers.

Commentary

Allah reminds you and advises you so that you do not repeat such a slander and accuse an innocent person of adultery, if you believe in Allah.

Read Tafsir Ibn Kathir