Task: Translation
Input (English): English sentence: After being imprisoned, ibn Sina decided to leave Hamadan in 1022 on the death of the Buyid prince who he was serving, and he travelled to Isfahan.
Output (Tagalog): Pagkatapos na makulong, ibn Sina nagpasya na umalis Hamadan sa 1022 sa ang kamatayan ng Buyid prinsipe na siya ay serving, at siya manlalakbay sa Isfahan.