It is narrated from Sayyidah Aishah (may Allah be pleased with her) that "the Messenger of Allah (peace and blessings be upon him) and Sayyidah Khadijah (may Allah be pleased with her) spent a month in i'tikaf (seclusion) in the Cave of Hira, and it happened to be the month of Ramadan. Then the Messenger of Allah (peace and blessings be upon him) came out (of the cave) and heard the words: 'As-salamu alaykum' (Peace be upon you). Sayyidah Aishah (may Allah be pleased with her) relates that he (peace and blessings be upon him) said: 'I thought it was a sudden appearance of the jinn.' So Sayyidah Khadijah (may Allah be pleased with her) said: 'Rejoice, for the greeting of peace is goodness and blessing.'" (The narrator) mentioned this long hadith.
Imam Abu Dawud al-Tayalisi and al-Harith recorded it with a hasan chain, and it will soon come in full detail in the section on the signs of Prophethood.