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).
قُلْتُ لاِبْنِ عَبَّاسٍ أَسْجُدُ فِي {ص} فَقَرَأَ {وَمِنْ ذُرِّيَّتِهِ دَاوُدَ وَسُلَيْمَانَ} حَتَّى أَتَى {فَبِهُدَاهُمُ اقْتَدِهْ} فَقَالَ نَبِيُّكُمْ ﷺ مِمَّنْ أُمِرَ أَنْ يَقْتَدِيَ بِهِمْ