Answer by taking a quote from the following article:

Muhammad Iqbal (Urdu: mHmd iqbl) (November 9, 1877 - April 21, 1938), widely known as Allama Iqbal, was a poet, philosopher, and politician, as well as an academic, barrister and scholar in British India who is widely regarded as having inspired the Pakistan Movement. He is called the "Spiritual Father of Pakistan." He is considered one of the most important figures in Urdu literature, with literary work in both Urdu and Persian.

In 1933, after returning from a trip to Spain and Afghanistan, Iqbal suffered from a mysterious throat illness. He spent his final years helping Chaudhry Niaz Ali Khan to establish the Dar ul Islam Trust Institute at Jamalpur estate near Pathankot, where there were plans to subsidise studies in classical Islam and contemporary social science. He also advocated for an independent Muslim state.  Iqbal ceased practising law in 1934 and was granted a pension by the Nawab of Bhopal. In his final years, he frequently visited the Dargah of famous Sufi Ali Hujwiri in Lahore for spiritual guidance. After suffering for months from his illness, Iqbal died in Lahore on 21 April 1938. His tomb is located in Hazuri Bagh, the enclosed garden between the entrance of the Badshahi Mosque and the Lahore Fort, and official guards are provided by the Government of Pakistan.  Iqbal is commemorated widely in Pakistan, where he is regarded as the ideological founder of the state. His Tarana-e-Hind is a song that is widely used in India as a patriotic song speaking of communal harmony. His birthday is annually commemorated in Pakistan as Iqbal Day. Iqbal is the namesake of many public institutions, including the Allama Iqbal Campus Punjab University in Lahore, the Allama Iqbal Medical College in Lahore, Iqbal Stadium in Faisalabad, Allama Iqbal Open University in Pakistan, Iqbal Memorial Institute in Srinagar, the Allama Iqbal International Airport in Lahore, Iqbal Hostel in Government College University, Lahore, the Allama Iqbal hall in Nishtar Medical College in Multan, Gulshan-e-Iqbal Town in Karachi, Allama Iqbal Town in Lahore, and Allama Iqbal Hall at Aligarh Muslim University.  The government and public organisations have sponsored the establishment of educational institutions, colleges and schools dedicated to Iqbal, and have established the Iqbal Academy Pakistan to research, teach and preserve his works, literature and philosophy. Allama Iqbal Stamps Society was established for the promotion of Iqbaliyat in philately and in other hobbies. His son Javid Iqbal has served as a justice of the Supreme Court of Pakistan. Javaid Manzil was Iqbal's last residence.

Did he form any friendships or romances in has later years?
His son Javid Iqbal has served as a justice of the Supreme Court of Pakistan.