‘Abdur-Rahman bin ‘Awf narrated that 'Umar bin al Khattab رضي الله عنه addressed the people and he heard him say:
Some people say: what is this stoning? ín the Book of Allah it mentions flogging.But the Messenger of Allah ﷺ stoned [adulterers] and we stoned [them] after him. Were it not that some people would say that 'Umar added something to the Book of Allah that is not part of it, I would have written it the way it was revealed.