Hello there...

I hope you are safe and have no problems from the accident you had...

According to the Qatari Traffic Law; any driver that cause an accident by hitting another driver's car from behind, it is his mistake and his insurance must pay for the damages he caused... in your case; that driver who hit you from behind must be obliged to repair your car; on the other hand, the car that you hit because of that driver, your insurance will be responsible for repairing the damages...

I hope this was helpful.

Stay safe and have a great day.