It was narrated from Ibn`Abbas that `Umar bin Khattab said:
"I fear that after a long time has passed, some will say: 'I do not find (the sentence of) stoning in the Book of Allah (ﷺ),' and they will go astray by abandoning one of the obligations enjoined by Allah (SWT). Rather stoning is a must if a man is married (or previously married) and proof is established, or if pregnancy results or if he admits it. I have read it (in the Quran). "And if an old man and an old woman commit adultery, stone them both." The Messenger of Allah (ﷺ) stoned (adulterers) and we stoned (them) after him.' "
English reference: Vol. 3, Book 20, Hadith 2553
Arabic reference: Book 20, Hadith 2650