The convict was identified as Abdur Rahim.
District and Sessions Judge Court Judge Md Sawkat Ali Chowdhury passed the order and also fined the convict with Tk 10,000.
According to the case statement, the victim was a threat for Rahim who had an extra-marital affair with the victim's mother.
Rahim kidnapped the victim Juwel Hasan, 10, from his parent's tea-stall in the village on November 18 in 2016 and killed him.
Later on the next morning Juwel's body was recovered from a paddy field in the neighboring Pichuria village.