Jami` at-Tirmidhi #2697
Chapters on Seeking Permission 42:10
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.