Narrated Abu Huraira (Radi Allah Anhu) Allah’s Apostle (sal-allahu-alleihi-wasallam) said:
“The congregational prayer of anyone amongst you is more than twenty (five or twenty seven) times in reward than his prayer in the market or in his house, for if he performs ablution completely and then goes to the mosque with the sole intention of performing the prayer, and nothing urges him to proceed to the mosque except the prayer, then, on every step which he takes towards the mosque, he will be raised one degree or one of his sins will be forgiven. The angels will keep on asking Allah’s forgiveness and blessings for everyone of you so long as he keeps sitting at his praying place. The angels will say, ‘O Allah, bless him! O Allah, be merciful to him!’ as long as he does not do Hadath or a thing which gives trouble to the other.”

The Prophet further said, “One is regarded in prayer so long as one is waiting for the prayer.”
[Sahih Al-Bukhari: Volume 3, Book 34 Sales and Trade , Number 330]

Allah Says in The Holy Quran Chapter 29 Surah Ankabut Verse 45 Regarding Some Of The Wisdom Behind The Act Of Salaah :

O Prophet, Recite This Book (Al Quran) Which Has Been Revealed To You, And Establish The Salaat. Surely The Salaat Restrains From indecent And Evil Acts, And The Remembrance Of Allah is indeed The Greatest. And Allah knows Whatever You Do.