Ruling on giving charity after every sin

Is it prescribed for the one who commits a sin to give charity after that?.

Praise be to Allaah.
Giving voluntary charity is a confirmed Sunnah at all times, as is indicated by the Qur’aan and Sunnah and the consensus of the scholars. It says in Kashshaaf al-Qinaa‘ (2/295): Voluntary charity is mustahabb at all times according to consensus, because Allah, may He be exalted, enjoined it and encouraged it… End quote. See also the answer to question no. 36783
Secondly: 
What is required of the Muslim if he commits a sin is to repent to Allah from it immediately, because Allah, may He be exalted, says (interpretation of the meaning):
“And all of you beg Allaah to forgive you all, O believers, that you may be successful”
[al-Noor 24:31]. 
And His Messenger (blessings and peace of Allah be upon him) instructed us to repent, as he said: “O people, repent to Allaah, for I repent to Allaah one hundred times a day.” Narrated by Muslim (2702). See also the answer to question no. 129479
If the sin had to do with the rights of another person, such as stealing or usurping property, the right must be restored to the one to whom it belongs, or his pardon and forgiveness should be sought. For more information on the other conditions of sincere repentance, please see the answer to question no.104241
Thirdly: 
There is nothing wrong with the Muslim giving some of his wealth in charity after every sin he commits, because of the general meaning of the verses in which Allah says (interpretation of the meaning):
“Verily, the good deeds remove the evil deeds”
[Hood 11:114].
“If you disclose your Sadaqaat (almsgiving), it is well; but if you conceal them and give them to the poor, that is better for you. (Allaah) will expiate you some of your sins. And Allaah is Well-Acquainted with what you do”
[al-Baqarah 2:271]. 
Ibn Jareer said: “will expiate you some of your sins” means: Allah will expiate your sins by virtue of your charity. End quote. 
It was narrated that Abu Dharr (may Allah be pleased with him) said: The Messenger of Allah (blessings and peace of Allah be upon him) said to me: “Fear Allah wherever you are, and follow up a bad deed with a good deed, it will wipe it out.” Narrated by al-Tirmidhi (1987); classed as hasan by al-Albaani in Sunan al-Tirmidhi. And it was narrated that Ka‘b ibn ‘Ajrah (may Allah be pleased with him) said: The Messenger of Allah (blessings and peace of Allah be upon him) said to me: “Charity extinguishes sin as water extinguishes fire.” Al-Tirmidhi (614); classed as saheeh by al-Albaani in Sunan al-Tirmidhi. 
It is proven in the story about Ka‘b ibn Maalik (may Allah be pleased with him), when he stayed behind from the campaign to Tabook, that he said: O Messenger of Allaah, as part of my repentance, I will give up my wealth as charity to Allaah and His Messenger (blessings and peace of Allah be upon him). The Messenger of Allaah (blessings and peace of Allah be upon him) said: “Keep some of your wealth; that is better for you.”
Narrated by al-Bukhaari (2758) and Muslim (2769). 
Al-Nawawi (may Allah have mercy on him) said: This indicates that it is mustahabb to give charity in gratitude to Allah for ongoing blessings, especially great blessings.
End quote from Sharh Saheeh Muslim 
In Mughni al-Muhtaaj (3/206) it says: It is recommended to give charity after every sin; this was stated by al-Jarjaani. End quote. 
And Allah knows best.
Learn Holy Quran because it will be a proof for us muslim on the Day of Judgment.
This is due to the statement of the Messenger: “And the Quran is a proof for you or against you.” [Muslim] so the deputy of every Muslim is to read quran and learn quran with tajweed so one of two things will occur with this proof, the Book of Allah. And this quran education will be in your favor, a proof for us on the Day when we will need every single good deed and learning quran along with doing quran memorization is one of it and to add more spread the quran teaching and spread the kids quran knowledge and listening to quran online and understand the quran tafseer , it will be something standing against us and follow the guidance of or prophet Muhammad peace be upon him, and these good deeds will be a proof against us! Who could be saved from the terrors of that Day if Allah’s own Speech is against him?!?! Think carefully, so reading Arabic Quran and teaching our kids quran qaida with the tafseer of quran  and let the kids memorize quran dear Muslim brother or sister, about your position with the reading Quran! Are you neglecting it, contradicting it, being heedless of its orders and prohibitions, are you thinking deeply over it?! Will it be on your side on the Day of Judgment.? So learn quran recitation! O Allah! We ask you, by Your Glorious Speech and the rest of your beautiful Names and Attributes, to make the Quran a proof for us! So the Quran tutor should let his student know about these facts also,