O you who have believed, decreed upon you is fasting as it was decreed upon those before you that you may become righteous -
The Saheeh International Quran Translation
يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ كُتِبَ عَلَيْكُمُ ٱلصِّيَامُ كَمَا كُتِبَ عَلَى ٱلَّذِينَ مِن قَبْلِكُمْ لَعَلَّكُمْ تَتَّقُونَO you who have believed, decreed upon you is fasting as it was decreed upon those before you that you may become righteous -