مَرَرْتُ بِرَجُلٍ أَبُوهُ عَالِمٌ: -hu points back to rajulin.
مَرَرْتُ بِرَجُلٍ قَامَ أَبُوهُ: the same attached pronoun links the verbal clause to the man.
A sentence after a noun is not automatically an adjectival clause; an appropriate meaningful and grammatical link must exist.