Who was a Historian, justice, philosopher as well as Politician?

A. Shams ud din bin Khalkan
B. Abdur Rehman bin Khaldun
C. Abu Bakar Muhammad Yahya
D. Muhammad bin Essa