Sahih al-Bukhari, Hadith 4632 ⓘ
Narrated Mujahid: 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."
حَدَّثَنِي إِبْرَاهِيمُ بْنُ مُوسَى، أَخْبَرَنَا هِشَامٌ، أَنَّ ابْنَ جُرَيْجٍ، أَخْبَرَهُمْ قَالَ أَخْبَرَنِي سُلَيْمَانُ الأَحْوَلُ، أَنَّ مُجَاهِدًا، أَخْبَرَهُ أَنَّهُ، سَأَلَ ابْنَ عَبَّاسٍ أَفِي " ص " سَجْدَةٌ فَقَالَ نَعَمْ. ثُمَّ تَلاَ {وَوَهَبْنَا} إِلَى قَوْلِهِ {فَبِهُدَاهُمُ اقْتَدِهْ} ثُمَّ قَالَ هُوَ مِنْهُمْ. زَادَ يَزِيدُ بْنُ هَارُونَ وَمُحَمَّدُ بْنُ عُبَيْدٍ وَسَهْلُ بْنُ يُوسُفَ عَنِ الْعَوَّامِ عَنْ مُجَاهِدٍ قُلْتُ لاِبْنِ عَبَّاسٍ فَقَالَ نَبِيُّكُمْ صلى الله عليه وسلم مِمَّنْ أُمِرَ أَنْ يَقْتَدِيَ بِهِمْ.
also referenced under: Book 65, Hadith 4632 (In-Book) & Volume 6, Book 60, Hadith 156 (USC-MSA)