Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:219ʿAbdullāh b. Muḥammad > ʿAbd al-Raḥman b. Mahdī > Sufyān > Wāṣil > Āmraʾah Yuqāl Lahā ʿĀʾidhah > Raʾayt Ibn Masʿūd Yūṣī al-Rijāl And al-Nnisāʾ

[Machine] I saw Ibn Mas'ud giving advice to men and women, saying, "Whoever meets a man or a woman, the first greeting should be the first greeting, as you are upon the primordial nature." Abdullah said, "The first greeting is the correct way."  

الدارمي:٢١٩أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ عَنْ سُفْيَانَ عَنْ وَاصِلٍ عَنِ امْرَأَةٍ يُقَالُ لَهَا عَائِذَةُ قَالَتْ

رَأَيْتُ ابْنَ مَسْعُودٍ يُوصِي الرِّجَالَ وَالنِّسَاءَ وَيَقُولُ «مَنْ أَدْرَكَ مِنْكمْ مِنَ امْرَأَةٍ أَوْ رَجُلٍ فَالسَّمْتَ الْأَوَّلَ السَّمْتُ الْأَوَّلُ فَإِنَّكُمْ عَلَى الْفِطْرَةِ» قَالَ عَبْدُ اللَّهِ السَّمْتُ الطَّرِيقُ