ESV: And as the men were parting from him, Peter said to Jesus, "Master, it is good that we are here. Let us make three tents, one for you and one for Moses and one for Elijah" — not knowing what he said.
NIV: As the men were leaving Jesus, Peter said to him, "Master, it is good for us to be here. Let us put up three shelters—one for you, one for Moses and one for Elijah." (He did not know what he was saying.)
NASB: And as these two men were leaving Him, Peter said to Jesus, 'Master, it is good that we are here; and let’s make three tabernacles: one for You, one for Moses, and one for Elijah'—not realizing what he was saying.
CSB: As the two men were departing from him, Peter said to Jesus, "Master, it’s good for us to be here. Let us set up three shelters: one for you, one for Moses, and one for Elijah"—not knowing what he was saying.
NLT: As Moses and Elijah were starting to leave, Peter, not even knowing what he was saying, blurted out, 'Master, it’s wonderful for us to be here! Let’s make three shelters as memorials — one for you, one for Moses, and one for Elijah.'
KJV: And it came to pass, as they departed from him, Peter said unto Jesus, Master, it is good for us to be here: and let us make three tabernacles; one for thee, and one for Moses, and one for Elias: not knowing what he said.
NKJV: Then it happened, as they were parting from Him, that Peter said to Jesus, “Master, it is good for us to be here; and let us make three tabernacles: one for You, one for Moses, and one for Elijah”—not knowing what he said.