The Prophet (ﷺ) said: whoever performs ablution, and performs his ablution perfectly, and…

Sunan Abu Dawud Book 2 Hadith 174

Sunan Abu Dawud #564

Prayer (Kitab Al-Salat) 2:174

Narrated AbuHurayrah:

The Prophet (ﷺ) said: whoever performs ablution, and performs his ablution perfectly, and then goes to the mosque and finds that the people had finished the prayer (in congregation), Allah will give him a reward like one who prayed in congregation and attended it; The reward of those who prayed in congregation will not be curtailed.

Chapter: Regarding One Who Leaves (His House) Desiring To Pray (With The Congregation) But Find That It has Finished

Grade: Sahih (Al-Albani)