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.
bukhari:3421Muḥammad > Sahl b. Yūsuf > al-ʿAwwām > Mujāhid

I asked Ibn ʿAbbas, "Should we perform a prostration on reciting Surat-Saʿd?" He recited (the Sura) including: 'And among his progeny, David, Solomon..(up to)...so follow their guidance (6.84-91) And then he said, "Your Prophet is amongst those people who have been ordered to follow them (i.e. the preceding apostles).  

البخاري:٣٤٢١حَدَّثَنَا مُحَمَّدٌ حَدَّثَنَا سَهْلُ بْنُ يُوسُفَ قَالَ سَمِعْتُ الْعَوَّامَ عَنْ مُجَاهِدٍ قَالَ

قُلْتُ لاِبْنِ عَبَّاسٍ أَسْجُدُ فِي {ص} فَقَرَأَ {وَمِنْ ذُرِّيَّتِهِ دَاوُدَ وَسُلَيْمَانَ} حَتَّى أَتَى {فَبِهُدَاهُمُ اقْتَدِهْ} فَقَالَ نَبِيُّكُمْ ﷺ مِمَّنْ أُمِرَ أَنْ يَقْتَدِيَ بِهِمْ