It was narrated that Ibn 'Abbas said: "If a man had intercourse with his wife while she was menstruating, the Prophet commanded him to give half a Dinar in charity".
The act of giving charity can be seen as an act of repentance for any wrongdoings we may have committed, and this hadith serves as an example of how we can use it in our lives. By giving half a Dinar in charity, the man showed his remorse for not following Allah's law and respected His commandment at the same time. This teaches us that even when we make mistakes, there are ways for us to repent and show our respect for Allah's laws through acts such as giving charity or performing good deeds.