Tuhfat al-Nafis (The Precious Gift) is a work of Malay literature written by Raja Ali Haji in Jawi in around 1866-70.[1] who is of Malay-Bugis descent. It records and chronicles events, especially those of the 19th century, that occurred in several Malay states. Some of the events recorded in the work include the founding of the state of Terengganu and the murder of Sultan Mahmud Shah II of Johor.