Medieval historian Ẓahīr al-dīn al-Bayhaqī (d