Makkah or Madinah?

Did it happen before the Hijra, in Makkah, or after it, in Madinah?