Ash-Shaykh Bin Baaz, rahimahullah, said when was asked a similar question:

“… Him going to the masjid by feet or by car and being patient upon that is greater and better for him in the reward, due to what is found in it of much good and due to him attending (it) along with the Muslims. Also, in the steps that the believer takes, in every step, Allah will raise him in a level by it and will expiate for him a sin by it, and it will be written for him a good deed, (of which) the virtue of it is great. Him going to the mosque by foot or by car even if it is far in distance, is better and greater in the reward… ”

[Transcribed from the following audio at the time 0:25 and up]

[Download]