In fact, it was David who first proposed building a temple, whereupon God gave David detailed plans for the temple and its furnishings.
حَقًّا ،‏ إِنَّ ٱقْتِنَاءَ ٱلْحِكْمَةِ وَٱلْعَمَلَ بِمُوجِبِهَا هُمَا لِخَيْرِكُمُ ٱلْأَبَدِيِّ .‏