Task: Translation
Input (Tagalog): Tagalog sentence: 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.
Output (English): 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.