Raḥmatin is genitive in fa-bi-mā raḥmatin.

Additional Particles: Seven Forms, Emphasis and Syntactic Case