Where do photons get their energy from? If energy required to accelerate a particle to the speed of light is infinite then where do they get it from?
But first if photon's are massless, then why do they collide to some other thing and get reflected as in our daily life or get deflected after colliding to an atom in the sun and just move inside the sun for a long time before escaping it? 
 A: Photons have always been moving at the speed of light, they were not accelerated to that speed; you will see that it's going to be difficult to even conceptualise photons accelerating once you learn about special relativity.
In addition, the relation of velocity to momentum is different in special relativity in comparison to Newtonian mechanics so that it is in fact possible for a zero mass particle to carry momentum, and thus collide etc
EDIT: You can see this using the energy-momentum relation: If you set m=0 the formula still makes sense.
A: Photos get their energy from all sorts of events, but that energy goes into creating the photon, rather than accelerating it.  Photons can be created, or radiated, by other energy sources, for example electricity (like a light bulb), nuclear reactions (like the sun or radioactivity), or a particle collision.
When photons collide or reflect they are actually in a sense being absorbed (annihilated) and a new photon is emitted (created).  In this case the first photon provides the energy to create the second one.
A: Your first sentence is correct. You said acceleration to light speed takes infinite energy - yes its true. We don't know for sure about photons but WE think they are not accelerated! They are created at this speed so no problem with infinity arises.
A: The energy required to accelerate a massive particle to the speed of light is infinite, yes. Photons are massless, though, so they travel at the speed of light regardless of what amount of energy you put into them. (It doesn’t really make sense to talk about accelerating a photon, since it will always travel at the speed of light.)
A: I see that none of the answers really cover it why photons always travel at the speed of light and where they get the energy from. 


*

*When the universe was created there was first a sea of photons, they were all created as pure energy, and thus they were all moving at that only speed, the speed of light. Time did not exist, or at least photons did not move in the time dimension, their speed in the time dimension is 0 or not comprehensible.

*You think of this the wrong way, you think you need to speed up to that spatial speed c, but that is not right. Energy moves at the speed of light, and everything else is relative to that.

*You need energy to slow anything down from the speed of light, and that energy comes from rest mass. Rest mass is the thing that slows particles down from the speed of light to a slower spatial speed.

*Photons always move in empty space (although EM waves can move in mediums), and they do not have a rest mass, nor can they be brought to rest.

*In empty space, you do not need energy to keep moving.

*The only way to slow down photons is by gravity. If you look at a photon near the sun, it will move slower then c (measured from the Earth), it is called the Shappiro effect.

*The only way to bring a photon to spatial speed 0 is to absorb it.

*But in this case the photon does not exist any more so its speed is not comprehensible.
