Hadithcore
Sahih Muslim, 208 b
sahih

This hadith was narrated by A'mash on the authority of the same chain of narrators and he said:

One day the Messenger of Allah (ﷺ) climbed the hill of Safa' and said: Be on your guard, and the rest of the hadith was narrated like the hadith transmitted by Usama; he made no mention of the revelation of the verse:" Warn your nearest kindred."

وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، بِهَذَا الإِسْنَادِ قَالَ صَعِدَ رَسُولُ اللَّهِ صلى الله عليه وسلم ذَاتَ يَوْمٍ الصَّفَا فَقَالَ ‏

‏ يَا صَبَاحَاهْ ‏

‏ ‏.‏ بِنَحْوِ حَدِيثِ أَبِي أُسَامَةَ وَلَمْ يَذْكُرْ نُزُولَ الآيَةِ ‏{‏ وَأَنْذِرْ عَشِيرَتَكَ الأَقْرَبِينَ‏}‏

References2 variants
In-Book Reference
Book 1, Hadith 415
USC-MSA web (English) reference
Book 1, Hadith 407 (deprecated numbering scheme)