Verily the Messenger of Allah ﷺ said: The five (daily) prayers and from one Friday prayer to the (next) Friday prayer, and from Ramadhan to Ramadhan are expiations for the (sins) committed in between (their intervals) provided one shuns the major sins. (Using translation from Muslim 233c)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يَقُولُ الصَّلَوَاتُ الْخَمْسُ وَالْجُمُعَةُ إِلَى الْجُمُعَةِ وَرَمَضَانُ إِلَى رَمَضَانَ مُكَفِّرَاتٌ مَا بَيْنَهُمَا إِذَا اجْتُنِبَتِ الْكَبَائِرُ