Sahih al-Bukhari 3421
Sahih al-Bukhari · Book 60: Prophets · The Statement of Allah Taa'la: "... And remember Our slave Dawud, endued with power..."
Narrated Mujahid:
حَدَّثَنَا مُحَمَّدٌ ، حَدَّثَنَا سَهْلُ بْنُ يُوسُفَ ، قَالَ سَمِعْتُ الْعَوَّامَ ، عَنْ مُجَاهِدٍ ، قَالَ قُلْتُ لاِبْنِ عَبَّاسٍ أَسْجُدُ فِي {ص} فَقَرَأَ {وَمِنْ ذُرِّيَّتِهِ دَاوُدَ وَسُلَيْمَانَ} حَتَّى أَتَى {فَبِهُدَاهُمُ اقْتَدِهْ} فَقَالَ : ابْنُ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا نَبِيُّكُمْ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مِمَّنْ أُمِرَ أَنْ يَقْتَدِيَ بِهِمْ .
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).