By mistakely I made a post using WordPress admin credentials. So I changed the author of a post like below.
You can change the author of an existing post in your WordPress website from your Dashboard, under Posts click on All Posts.
Click on Quick Edit for the post whose author you would like to change and find the Author section. From the drop-down menu choose the new author and then click the Update button to save the change.