"Indeed, prayer prohibits immorality and wrongdoing." Al-Kalbi's interpretation: As long as the servant is in his prayer, he commits neither immorality nor wrongdoing. "And the remembrance of God is greater." Al-Hasan's interpretation: God said, "So remember Me; I will remember you." Thus, when the servant remembers God, God remembers him; therefore, God's remembrance of the servant is greater than the servant's remembrance of Him.
Surah Al-Ankabut from (verse 46 - verse 48).