Thanks for your query.
in children is usually related to dietary intake.
I suggest you to give him plenty of fluids.salad,fruits,green leafy vegetables.
Avoid all kind of fried and junk food.
Give him one spoon of honey daily at bed time.
If problem persist get him evaluated by pediatrician
as he may need laxative for few days.
Wishing your child good health.