Sahih al-Bukhari 4807
صحيح البخاري#4807SahihNarrated Al-Awwam:I asked Mujahid regarding the prostration in Surat Sa`d. He said, "I asked Ibn `Abbas, 'What evidence makes you prostrate?' He said, "Don't you recite:--'And among his progeny, David and Solomon..(6.84). Those are they whom Allah had guided. So follow their guidance.' (6.90) So David was the one of those prophets whom Prophet (Muhammad) was ordered to follow. David prostrated, so Allah's Messenger (ﷺ) (Muhammad) performed this prostration too
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih al-Bukhari is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 65:329