This is a Austro-Hungarian Empire Pro Deo et Patria medal, it was a Hungarian 1914-1918 WW1 Commemorative Combatant’s military award. It was instituted in 1929.
“Pro Deo et Patria” translates as “for God and Country”. The ribbon is the original one for German recipients.
Award for the participation in the Great War.