Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: The Noble Prophet Muhammad (peace and blessings be upon him) said: Sayyiduna Dawud (peace be upon him) performed prostration here due to repentance, and we perform prostration out of gratitude. The narrator states: This refers to the prostration mentioned in Surah Sad.
Hadith Referenceسنن الدارقطني / كتاب الصلاة / 1515
Hadith Takhrij«أخرجه البخاري فى ((صحيحه)) برقم: 1069، 3421، 3422، 4632، 4806، 4807، وابن خزيمة فى ((صحيحه)) برقم: 550، وابن حبان فى ((صحيحه)) برقم: 2766، والنسائي فى ((المجتبیٰ)) برقم: 956 ، وأبو داود فى ((سننه)) برقم: 1409، والترمذي فى ((جامعه)) برقم: 577، والدارمي فى ((مسنده)) برقم: 1508، والحميدي فى ((مسنده)) برقم: 483، والدارقطني فى ((سننه)) برقم: 1515، 1516، وأحمد فى ((مسنده)) برقم: 2562»