 Prior to his formal education, Hamka lived with his grandmother in a house south of Maninjau.When he was six years old, he moved with his father to Padang Panjang.Following common tradition in Minang, he studied the Quran, and slept in a mosque near his family home (Minang boys were not traditionally assigned a bedroom in the family home).