Al-Ilmam bi-Ahadith al-Ahkam 263
وَعَن عبد الله (هُوَ) ابْن مَسْعُود رَضِيَ اللَّهُ عَنْه: " أَن النَّبِي ﷺ صَلَّى الظّهْر خمْسا، فَسجدَ فَقيل لَهُ: أَزِيد فِي الصَّلَاة؟ فَقَالَ: وَمَا ذَاك؟ قَالُوا: صليت خمْسا، فَسجدَ سَجْدَتَيْنِ بَعْدَمَا سلم ". لفظ البُخَارِيّ. وَفِي رِوَايَة عِنْد مُسلم وفيهَا قصَّة: " فَسجدَ سَجْدَتَيْنِ ثمَّ سلم ".
And from ʿAbdullah (he is) Ibn Masʿud, may Allah be pleased with him: "The Prophet ﷺ prayed Zuhr as five [rakʿahs], and it was said to him: 'Has something been added to the prayer?' He said: 'And what is that?' They said: 'You prayed five.' So he prostrated twice after he had given the salam." The wording is al-Bukhari's. And in a narration with Muslim, which contains a story: "So he prostrated twice, then gave the salam."