 Hamka soon returned to his homeland after seven months of living in Mecca.However, instead of going home to Padang Panjang, Hamka settled in the city of Medan, where his returning ship had anchored.While in Medan, he wrote many articles for various magazines and had become a religion teacher for several months in Tebing Tinggi.