Sunan Abi Dawud, Book 11, Hadith 321 (Abu Dawud 2042)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: If any one of you greets me, Allah returns my soul to me and I respond to the greeting.