Daniel and Revelation speak metaphorically...and uses symbolism to describe future events.Oh yes, I'm aware of Ecclesiastes 12:7.
How does that comport though with Daniel 12:2? Particularly this description: ... who sleep in the dust of the earth shall awake...
Why would a soul returned to God be awakened in the body sleeping in the dust from whence they sprang?
Here is an excerpt of a study on Daniel 12.
DANIEL 12
12:2 "those who sleep" There are several terms in Hebrew for sleep.
yashen (BDB 445), which is normally used of natural sleep, but in Dan. 12:2, of deathshenah (BDB 446), also used of natural sleep, Dan. 2:1; 6:18shakab (BDB 446), which is used in the books of 2 Samuel, 1 and 2 Kings, and 2 Chronicles for death (2 Sam. 11:9) and normal sleep (2 Sam. 7:12)
The concept of death as sleep is also found in the NT (e.g., Matt. 27:52 [note resurrection]; John 11:11 [note resurrection in John 11:25-26; 13:36; Acts 7:60; 1 Thess. 4:13 [note resurrection in 4:14-17]; 5:10).
▣ "in the dust of the ground" This Hebrew idiom is a play on the word "ground," adanah (BDB 9) and dust (BDB 779) from Gen. 2:7 and 3:19 (cf. Ps. 90:3; 104:29). The dust of the ground is metaphorically the holding place of the dead (i.e., Sheol, e.g., 1 Sam. 2:6; Job 14:13; Ps. 30:3; 49:14-15; 139:8; Isa. 38:10; Hos. 13:14; Amos 9:2).
SPECIAL TOPIC: WHERE ARE THE DEAD
▣ "will awake" This VERB (BDB 884, KB 1098) is a Hiphil IMPERFECT. This is another Hebrew idiom of life from death (cf. 2 Kgs. 4:31; Jer. 51:39,57; Job 14:12). In Isa. 26:19 and here it denotes resurrection (see SPECIAL TOPIC: RESURRECTION). This is exactly the implication of Ezekiel's vision of the dry bones (cf. Ezekiel 37), but in an individual sense. Some will awake to everlasting joy (cf. Isa. 66:22-23) and others to everlasting contempt (cf. Isa. 66:24).