Md. Code Ann., Real Prop. § 9-113
(a) An executory contract between a contractor and any subcontractor that is related to construction, alteration, or repair of a building, structure, or improvement may not waive or require the subcontractor to waive the right to:
(b) A provision in an executory contract between a contractor and a subcontractor that is related to construction, alteration, or repair of a building, structure, or improvement and that conditions payment to the subcontractor on receipt by the contractor of payment from the owner or any other third party may not abrogate or waive the right of the subcontractor to:
Added by Acts 1981, c. 756, § 1, eff. July 1, 1981. Amended by Acts 1994, c. 626, § 1, eff. Oct. 1, 1994; Acts 1995, c. 3, § 1, eff. March 7, 1995.