It is not a coin, but a medal - presumably made with a mount attached, which has since broken off. The obverse legend in indecipherable to me; the script is not regular Arabic or Persian. All I can say for sure, is that the same word appears twice.
I'm not entirely sure of the origin, but if I had to guess, my guess would be pre-revolutionary Iran.
Googling the phrase "Sum et impero" (Latin for "and I command") comes up with a couple of old auction listings for this medal; one describes it as "Arabic", the other describes it as "Egyptian" and identifying the portrait as that of Ibrahim Pacha, who briefly ruled Ottoman Egypt in 1848. I'm not fully certain either listing is actually accurate.
I'm not entirely sure why an Egyptian, Arabic or Iranian medal would have a Latin inscription, though.
Don't say "infinitely" when you mean "very"; otherwise, you'll have no word left when you want to talk about something really infinite. - C. S. Lewis