Alladhī in jāʾa alladhī najaḥa is a relative noun.

The indeclinable noun: definition, rule and eight classes