Dear Maytham Qabel Hamzah , there are several options on how to get guidelines on how to write a thesis. But, the best option is to follow your university guideline or refer thesis works done before in your university or department.
I have also got one interesting book for guiding on how to write a thesis. Please get the attached Pdf.
If you are interested to have a review through different literature's, try to spend your money and order the following book online using the links:
There are .many books how to write a thesis. But as it was said here, you have to follow your university guideline. Or else you may end up with perfect thesis and no diploma.
There are some basic rules and major components in any thesis, and any university has its own style, you will find it in a booklet issued by each university, which is the instructions to write theses!
Couldn't get you a book but this link may help https://www.google.com.na/search?q=writing+a+phd+dissertation&rlz=1C1CHZL_enNA719NA719&oq=Writing+a+PhD&aqs=chrome.4.0j69i57j0l4.13381j0j1&sourceid=chrome&ie=UTF-8
There are many sources and works, but the best answer is in the university where you study and your own efforts to know and determine the appropriate method for you.