Strange oaths

I adjure you, O daughters of Jerusalem, by the gazelles
and by the hinds of the fields

— Song of Songs 2:7

By the fig and the olive,
and by Mount Sinai,
and by this secure city

— Qur’an 95:1-3

What’s up with this? Are the authors just swearing to emphasize/enshrine these particular mundane images, or is swearing by such things a classical Near Eastern convention? Curious to know if there are similar examples out there (Hebrew, Islamic, Hurrian, Hittite, or otherwise…)