In wa-llāhi, wāw marks the oath and Allāh is genitive.
Conditional Particles: In, Law and Ammā