Sunan Ibn Majah
1019
Sahih+2

It was narrated that ‘Abdullah said:“We would greet others during the prayer, and it was said to us: ‘During the prayer one is preoccupied.’”

SahihAl-Albani
SahihMuhammad Fouad Abd al-Baqi