it looks like it doesn't have enough roots to create enough torgur pressure to keep the leaves up. give it a bit of rooting stimulants and it should heal in a week or so.
Second this. Since it came from a grow cube, it just needs some adjusting time. give it 4 days or so and just keep spraying it lightly a few times a day. only get the first inch of soil wet. let it dry out in between, but if it gets too dry it can also wilt (key difference to notice is whether there is wilting + shriveling or wilting but looking healthy) Also like he said you can give it a weak solution of rooting nutes like root 66.
If the plant isnt looking better in 4-5 days make sure ph/ppm is ok. another method would be to cut off some of the leaves (not the stems, just some leaves on the lower fan leaves) - this will add a small amount of stress but if the plant is unbalanced (too few roots for too much plant) you can get a wilting like this. reducing the amount of leaves it needs to keep healthy will give it an easier time initially. also, since the lower fan leaves become obsolete and fall off anyways after a while, its not really much of a loss.