Abu Hurairah reported,

I asked Allah to grant me a righteous companion, so tell me a hadith you heard from the Messenger of Allah ﷺ, that perhaps Allah may benefit me through it.He said, I heard the Messenger of Allah ﷺ say, "The first thing for which a servant will be called to account on the Day of Resurrection from his deeds is his prayer. If it is sound, he has succeeded and prospered, but if it is corrupt, he has failed and lost. If something is lacking from his obligatory prayers, the Lord عز وجل will say, 'Look, does My servant have any voluntary prayers?' so that what was lacking from the obligatory prayers may be completed by them. Then the rest of his deeds will be judged in the same way."

Tirmidhi 413

Sahih

حدثنا علي بن نصر بن علي الجهضمي حدثنا سهل بن حماد حدثنا همام قال حدثني قتادة عن الحسن عن حريث بن قبيصة قال قدمت المدينة فقلت اللهم يسر لي جليسا صالحا قال فجلست إلى

أبي هريرة فقلت

إني سألت الله أن يرزقني جليسا صالحا فحدثني بحديث سمعته من رسول الله ﷺ لعل الله أن ينفعني به فقال سمعت رسول الله ﷺ يقول إن أول ما يحاسب به العبد يوم القيامة من عمله صلاته فإن صلحت فقد أفلح وأنجح وإن فسدت فقد خاب وخسر فإن انتقص من فريضته شيء قال الرب عز وجل انظروا هل لعبدي من تطوع فيكمل بها ما انتقص من الفريضة ثم يكون سائر عمله على ذلك

الترمذي 413صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
Prayer being the first thing a servant will be held accountable for on the Day of Resurrection
Numbering
Darussalam 413
Tirmidhi 413