The Prophet (ﷺ) said: If any one of you greets me, Allah returns my soul to me and I respond to the greeting.
Sunan Abi Dawud Book 11, Hadith 321