He narrated that he set out as a delegate to the Messenger of Allah ﷺ. He said, "We prayed behind the Prophet ﷺ, and out of the corner of his eye he noticed a man who was not straightening his back during the bowing and prostration."When the Messenger of Allah ﷺ finished, he said, "Company of Muslims, there is no prayer for one who does not straighten his back during the bowing and prostration."He said, "He also saw a man praying behind the row, so he stood waiting until the man finished."Then the Messenger of Allah ﷺ said, "Repeat your prayer, for there is no prayer for a man praying alone behind the row."Abdul-Samad said, "Praying alone behind the row."
قال حدثنا عبد الصمد وسريج قالا حدثنا ملازم بن عمرو حدثنا عبد الله بن بدر أن عبد الرحمن بن علي حدثه أن
حدثه أنه خرج وافدا إلى رسول الله ﷺ قال فصلينا خلف النبي ﷺ فلمح بمؤخر عينيه إلى رجل لا يقيم صلبه في الركوع والسجود فلما انصرف رسول الله ﷺ قال يا معشر المسلمين إنه لا صلاة لمن لا يقيم صلبه في الركوع والسجود قال ورأى رجلا يصلي خلف الصف فوقف حتى انصرف الرجل فقال رسول الله ﷺ استقبل صلاتك فلا صلاة لرجل فرد خلف الصف قال عبد الصمد فردا خلف الصف
Its isnad is sahih, and Abdul-Rahman bin Ali bin Shayban is trustworthy, and they praised him, and Bukhari mentioned his hadith in Tarikh al-Kabir 6/260. The hadith has preceded many times in similar wording. See 16236.