Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:34:13

They made for him what he willed of elevated chambers, statues, bowls like reservoirs, and stationary kettles. ˹We said˺, "Work, O family of David, in gratitude." And few of My servants are grateful.  

They fashioned for him whatever he wished: lofty shrines (mahārīb are high edifices which are ascended by stairs) and statues (tamāthīl is the plural of timthāl, which is any thing which you fashion as a likeness ˹of another˺), in other words, brass, crystal or marble figures — the use of figures was not prohibited according to his Law; and basins (jifān is the plural of jafna) like cisterns (jawābin is the plural of jābiya, which is a large basin) — around each ‘basin’ a thousand men would gather to eat — and cauldrons built into the ground, fixed with foundations, and cannot be moved from their places: these were made from the ˹rocks of the˺ mountains of Yemen, and to which one ascended by climbing up a ladder. And We said: ‘Work, O, House of David, in obedience to God, in thankfulness, to Him for what He has given you. And few indeed of My servants are thankful’, labouring in obedience to Me in thanks for My favours.
القرآن:٣٤:١٣

يَعْمَلُونَ لَهُ مَا يَشَاءُ مِنْ مَحَارِيبَ وَتَمَاثِيلَ وَجِفَانٍ كَالْجَوَابِ وَقُدُورٍ رَاسِيَاتٍ ۚ اعْمَلُوا آلَ دَاوُودَ شُكْرًا ۚ وَقَلِيلٌ مِنْ عِبَادِيَ الشَّكُورُ  

{يعملون له ما يشاء من محاريب} أبنية مرتفعة يصعد اليها بدرج {وتماثيل} جمع تمثال وهو كل شيء مثلته بشيء، أي صور من نحاس وزجاج ورخام، ولم يكن اتخاذ الصور حراما في شريعته {وجفان} جمع جفنه {كالجوابـ} ـي جمع جابية وهو حوض كبير، يجتمع على الجفنة ألف رجل يأكلون منها {وقدور راسيات} ثابتات لها قوائم لا تتحرك عن أماكنها تتخذ من الجبال باليمن يصعد إليها بالسلالم وقلنا {اعملوا} يا {آل داود} بطاعة الله {شكرا} له على ما أتاكم {وقليل من عبادي الشكور} العامل بطاعتي شكرا لنعمتي.