Rashi in Bamidbar 20:2 notes that until Miriam died the be'er [literally well] gave water. Was this be'er the rock which Moshe hit in Shemos 17? Or was it a well, and if so where is the first source for this in the Torah? Or is it just in Chazal?
R. Shlomo Kluger here commenting on verses 20:9 and 20:12 says that the rock was the Well of Miriam. Since Yisrael got this source of water in the merit of Miriam when she died it stopped producing water, but Hashem restored it in the merit of Moshe.