Sayyidina Umar ibn Khattab narrated: Surely Allah sent Muhammad with the truth and revealed to him the Book. And in that which He revealed is the verse of rajm. So Allah’s Messenger (SAW) inflicted this punishment and, after him, we inflicted it. But I fear that a time will come upon the people when one who has to say might say, “We do not find rajm, in the Book of Allah.” Perhaps they might go astray by neglecting a fard that Allah has revealed. Know’ If a married person commits adultery, he has to be stoned to death provided there are witnesses, or he confeses himself, or pregnancy makes it known.
[Bukhari 6829, Muslim 1691]