Awwam bin Hawshab reported,

I asked Mujahid about the prostration in Surah Sad. He said, "I asked Ibn Abbas, 'On what basis did you prostrate?'He replied, 'Do you not recite "And from his descendants, Dawud and Sulayman" [Anam 6:84], and "Those are the ones whom Allah has guided, so follow their guidance" [Anam 6:90]? Dawud was among those whom your Prophet was commanded to follow, and the Messenger of Allah ﷺ performed this prostration.'"

Azami 3020

Sahih

عن العوام بن حوشب قال

سألت مجاهدا عن سجدة {ص} فقال: سألت ابن عباس: من أين سجدت؟ فقال: أو ما تقرأ: {ومن ذريته داوود وسليمان} {أولئك الذين هدى الله فبهداهم اقتده} فكان داود ممن أمر نبيكم أن يقتدي به، فسجدها رسول الله ﷺ.

الأعظمي 3020صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Prostration of recitation, gratitude, and signs
Section
Sajdah of Surah Sad is a sajdah of gratitude, not of recitation
Numbering
Jami al-Kamil 3020 (2nd edition)
Azami 3020