the first who defined the waqf law was Prophet Muhammad. Prophet Muhammad (P.B.U.H) donated the land for the construction of the masjid.