Bulugh al-Maram, Book 3, Hadith 577 (English)

Buraidah (RAA) reported Concerning the story of the Ghamidi woman, who was to be stoned by the order of the Prophet (due to committing adultery), ‘Then the Messenger of Allah gave his command concerning her (after her death), so he offered the funeral prayer for her, and she was then buried.’ Related by Muslim.

وَعَنْ بُرَيْدَةَ ‏- رضى الله عنه ‏- ‏-فِي قِصَّةِ الْغَامِدِيَّةِ اَلَّتِي أَمَرَ اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-بِرَجْمِهَا فِي اَلزِّنَا‏- قَالَ: { ثُمَّ أَمَرَ بِهَا فَصُلِّيَ عَلَيْهَا وَدُفِنَتْ } رَوَاهُ مُسْلِمٌ 1‏.‏ ‏1 ‏- صحيح.‏ رواه مسلم (1695)‏.‏

sunnah.com

also referenced under: Book 3, Hadith 21 (In-Book)