Al-Baqarah - 2:183

يَا أَيُّهَا الَّذِينَ آمَنُواْ كُتِبَ عَلَيْكُمُ الصِّيَامُ كَمَا كُتِبَ عَلَى الَّذِينَ مِن قَبْلِكُمْ لَعَلَّكُمْ تَتَّقُونَ
[2:183]
O you who believe! fasting is prescribed for you, as it was prescribed for those before you, so that you may guard (against evil).
O ye who believe! Fasting is prescribed to you as it was prescribed to those before you, that ye may (learn) self-restraint,-
O ye who believe! Fasting is prescribed for you, even as it was prescribed for those before you, that ye may ward off (evil);