Jami` at-Tirmidhi, Book 42, Hadith 10 (Tirmidhi 2767)

Narrated Asma bint Yazid:

that the Messenger of Allah (ﷺ) passed through the Masjid one day, and a group of women were sitting, so he motioned his hand with the Salam - 'Abdul-Hamid (one of the narrators) gestured with his hand.