Sunan an-Nasa'i #957 · The Book of the Commencement of the Prayer

Sunan an-Nasa'iIt was narrated from Ibn Abbas that
Sunan an-Nasa'i · Book 11 · The Book of the Commencement of the Prayer
Sunan an-Nasa'i · كتاب 11 · كتاب افتتاح الصلاة
The Prophet (ﷺ) prostrated in Sad and said: "Dawud did this prostration in repentance and we do it in thanksgiving
أَخْبَرَنِي إِبْرَاهِيمُ بْنُ الْحَسَنِ الْمِقْسَمِيُّ، قَالَ حَدَّثَنَا حَجَّاجُ بْنُ مُحَمَّدٍ، عَنْ عُمَرَ بْنِ ذَرٍّ، عَنْ أَبِيهِ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَجَدَ فِي ‏{‏ ص ‏}‏ وَقَالَ ‏
"‏ سَجَدَهَا دَاوُدُ تَوْبَةً وَنَسْجُدُهَا شُكْرًا ‏"‏ ‏.‏
Reference : Sunan an-Nasa'i 957In-book reference : Book 11, Hadith 82