It happened to me too. Battery indication would be misleading, saying some whatever 20 or even 80% battery left but would auto reboot following any use of the phone. Most people already went in depth about the problem.
The source of the problem, as already mentioned, is the battery itself...