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:4632Ibrāhīm b. Mūsá > Hishām > Ibn Jurayj > Sulaymān al-Aḥwal > Mujāhid

That he asked Ibn ʿAbbas, "Is there a prostration Surat-al-Saʿd?" (38.24) Ibn ʿAbbas said, "Yes," and then recited: "We gave...So follow their guidance." (6.85,90) Then he said, "He (David ) is one them (i.e. those prophets)." Mujahid narrated: I asked Ibn ʿAbbas (regarding the above Verse). He said, "Your Prophet (Muhammad) was one of those who were ordered to follow them."  

البخاري:٤٦٣٢حَدَّثَنِي إِبْرَاهِيمُ بْنُ مُوسَى أَخْبَرَنَا هِشَامٌ أَنَّ ابْنَ جُرَيْجٍ أَخْبَرَهُمْ قَالَ أَخْبَرَنِي سُلَيْمَانُ الأَحْوَلُ أَنَّ مُجَاهِدًا أَخْبَرَهُ أَنَّهُ سَأَلَ ابْنَ عَبَّاسٍ أَفِي ص سَجْدَةٌ فَقَالَ

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