The Prophet (ﷺ) said: Those who are nearest to Allah are they who are first to give a salutation.

Sunan Abi Dawud Book 43, Hadith 425