As your body is not used to the exercise, it is natural to get pain when you do it for the first time, the pain will disappear within few days as your body gets used to the exercise regime.
Health Tips
You can use hot water bag over your abs to ease the pain twice daily and use warm water for bath