Abu Hurairah reported,

The Prophet ﷺ said, "There is no ghirar in prayer or in greeting."Ahmad said, "What I understand by this is that you should not give the greeting of peace nor have it given to you while in prayer, and that a man should not let his prayer be deficient by leaving it while still in doubt about it."

Abu Dawud 928

Daif

حدثنا أحمد بن حنبل حدثنا عبد الرحمن بن مهدي عن سفيان عن أبي مالك الأشجعي عن أبي حازم

عن أبي هريرة

عن النبي ﷺ قال لا غرار في صلاة ولا تسليم قال أحمد يعني فيما أرى أن لا تسلم ولا يسلم عليك ويغرر الرجل بصلاته فينصرف وهو فيها شاك

أبو داود 928ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Returning the greeting during prayer
Numbering
Darussalam 928
Abu Dawud 928