Mahdi - How to pronounce Mahdi in Polish

Which Pronunciation of Mahdi sounds correct?