On the authority of Abu Huraira, may God be pleased with him, he said:
▫ The Messenger of God, peace and blessings be upon him, said:
"The five daily prayers, Friday to Friday, and Ramadan to Ramadan make up for what is in between if major sins are avoided."
Narrated by Muslim 233.
The type of sins that are atoned for: these great acts of worship only atone for the small sins that occurred between them (such as a forbidden look, or an unkind word). As for major sins (such as adultery, drinking alcohol or disobeying one's parents), only sincere repentance can atone for them.
The conditions of atonement: to achieve this great virtue it is necessary to avoid great sins.
God's grace and mercy: If there are no minor sins in the temple that these obediences can compensate for, then they will be a reason for raising ranks and increasing good deeds, or for reducing major sins if they exist, according to the teachings of some scholars.