According to Hanafi Law, a mother is entitled to the custody (Hizanat) of a male child till the age of:
1
12 years
2
18 years
3
7 years
4
21 years