This is a tough one. Doing a Zeno search of coins 5.0-5.4 grams and 20-24 mm gave some that look similar in some aspects. The closest one I saw is this Abbasid one
https://www.zeno.ru/showphoto.php?photo=180622
Perhaps with the coin in hand you can see if this one appears to be a match.
There's another Abbasid one with some similarities
https://www.zeno.ru/showphoto.php?photo=45698
There is also an Ilkhan coin that has some similarities on one side
https://www.zeno.ru/showphoto.php?photo=142866
However, similarities are to be expected because a lot of Islamic coins have similar professions of faith or descriptions of the ruler.
Hopefully someone who can read Arabic and knows Islamic coins better can offer more information on your coin.