Surah Al-'Ankabut 29:45
ٱتْلُ مَآ أُوحِىَ إِلَيْكَ مِنَ ٱلْكِتَـٰبِ وَأَقِمِ ٱلصَّلَوٰةَ ۖ إِنَّ ٱلصَّلَوٰةَ تَنْهَىٰ عَنِ ٱلْفَحْشَآءِ وَٱلْمُنكَرِ ۗ وَلَذِكْرُ ٱللَّهِ أَكْبَرُ ۗ وَٱللَّهُ يَعْلَمُ مَا تَصْنَعُونَ
Recite, [O Muḥammad], what has been revealed to you of the Book and establish prayer. Indeed, prayer prohibits immorality and wrongdoing, and the remembrance of Allāh is greater. And Allāh knows that which you do.
Translation: Saheeh International
Tafsir
Recite what has been revealed to you of the Book the Qur’ān and maintain prayer; truly prayer prohibits lewd acts and indecency defined as such according to the Law. In other words that is its purpose provided that the person adheres to observance of it. …
Excerpt from Tafsir al-Jalalayn, commentary on 29:45, via Quran.com. The reader has the full commentary and 9 more tafsirs.