´It was narrated from Ibn Abbas that:` The Prophet (ﷺ) prostrated in Sad and said: "Dawud did this prostration in repentance and we do it in thanksgiving."
Hadith Referenceسنن نسائي / باب سجود القرآن / 958
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:إسناده صحيح