Allah's Messenger (ﷺ) forbade the use of (certain) containers, but the Ansar said, "We cannot dispense with them." The Prophet (ﷺ) then said, "If so, then use them."
Sahih al-Bukhari Book 74, Hadith 18