Abbasgulu agha Bakikhanov (Azerbaijani: Abbasqulu ağa Bakıxanov) (21 June 1794, Amirjan – 31 May 1847, Wadi Fatima, near Jeddah), Abbas Qoli Bakikhanov, or Abbas-Qoli ibn Mirza Mohammad (Taghi) Khan Badkubi was an Azerbaijani writer, historian, journalist, linguist, poet and philosopher. He was son of the third khan of Baku Mirza Muhammad Khan II. He later served as an officer in the Imperial Russian Army and participated in the Russo-Persian War of 1826–1828. He later retired and settled in Quba, but traveled extensively within Russia, meeting important literary figures as Alexander Pushkin. Also known by his pen name Qodsi / Qudsi / Gudsi (Azeri: Qüdsi), Bakikhanov is referred to by many Azerbaijani scholars as being one of the "earliest (Azerbaijani) intellectuals and historians". He is credited with being the first person that wrote a proper "scholarly monograph on the history of greater Shirvan"; the area that would later make up most of the Republic of Azerbaijan. His Qanun-e Qudsi, was the first Persian grammar manual published in history.