I merged by mistake in master branch instead to merge in dev branch, How to correct this?

Hello ,

I merged the Branch add-button in master instead to merge it in dev branch !

My question is , how to undo this merge and make master branch like before , then merge add-button to dev branch ?

Please help