Abu Bakra reported,

The Messenger of Allah ﷺ said, "None of you should say, 'I stood the whole of Ramadan in prayer.'"The narrator commented, "Allah تبارك وتعالى knows best, perhaps he feared that his community would praise themselves."Abdul-Wahhab said, "Allah knows best whether he feared self-praise upon his community, or whether he said it because some sleep or lapse of attention is inevitable."

Ahmad 20488

Daif

حدثنا محمد بن جعفر حدثنا سعيد وعبد الوهاب عن سعيد عن قتادة عن الحسن

عن أبي بكرة

أن رسول الله ﷺ قال لا يقولن أحدكم إني قمت رمضان كله قال فالله تبارك وتعالى أعلم أخشي على أمته أن تزكي أنفسها قال عبد الوهاب فالله أعلم أخشي التزكية على أمته أو قال لا بد من نوم أو غفلة

أحمد 20488ضعيف
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Bakra Nufay bin Harith Thaqafi
Numbering
Darussalam 20488
Ahmad 20488