The process by which memories are strengthened and stabilized over time, occurring during sleep or when memory is rehearsed.