The 9mm is a Swedish M/40, exported to Denmark for police use. The Danish designation for this is M/40S, they had a "D" prefix serial number and the Danish proof mark "HV" (Haerens Vapenarsenal) and the one in the picture is also in the known serial number range for these guns. Sometimes you'll see them with a large property stamp saying “Rigspoliti” or "Rplt. S".
I don't know when they were exported, but it's possible that some fell into the hands of the nazis occupying Denmark. I don't believe the "Sweden" stamp belongs there though, none of the guns I have seen in Sweden have had this. Some guns were assembled in Denmark and stamped "Made in Sweden" or just "Sweden", but these would have a "VP" prefix, instead of the "D". I have found the same, large font "SWEDEN" stamp on every M/40 I have seen in the US, same font, same place etc, so I suspect that it's actually an American import stamp. This would make more sense than the bringback story.
I would agree with Dave's appraisal, $500-$700 for nice rigs, maybe $800 for a mint one on a very good day. These pistols are fairly easy to find, and there's really not much collector interest in them either. Some people are asking $1,000 and up (one has been floating around at the local gun shows for years) but I have never seen one actually selling for that amount.
Anyway, it's a nice pistol and it would sure look good in my budding collection of Swedish guns...