Shaykh Muhammad Farooq Rafi
Benefits:
➊ This hadith is evidence that returning the greeting of salam by gesture during the prayer is permissible; this is the position of the majority of scholars, and this is the preponderant view.
The Hanafis differ on this matter.
Some Hanafis, such as al-Tahawi and others, consider it disliked (makruh), while some Hanafi scholars declare it permissible. [Tuhfat al-Ahwadhi: 252/2]
➋ Greeting a person who is praying with salam is a recommended act and a religious right; therefore the view that salam should not be given during the prayer is false.
➌ And the one who gives salam during the prayer should be answered with a gesture of the hand, while answering the salam verbally invalidates the prayer.
Source: Sahih Ibn Khuzaymah: Commentary by Muhammad Farooq Rafee, Page: 888