Where does the funeral tradition of burial within 24 hours originate? A Google search result pointed me towards this passage from the Torah as being the reason:
And if a man have committed a sin worthy of death, and he be put to death, and thou hang him on a tree; his body shall not remain all night upon the tree, but thou shalt surely bury him the same day; for he that is hanged is a reproach unto God; that thou defile not thy land which the LORD thy God giveth thee for an inheritance.
As you can see, when looking up the referenced passage and seeing the additional context it makes no sense.
I always understood it to stem from living in a hot country where bodies would decompose if left for too long. However, if it's just a tradition, you'd expect it to not remain any more due to modern cryogenics and the likelihood of family having to travel long distances in order to attend.
Where did it come from and why is it still prevalent today?