When my Mom was dying of cancer, our Sheltie would get very excited if she heard one us of say we were going to "Mom and Dad's." When we got there, she'd bolt into the bedroom where Mom was, jump up on the bed, and lay down next to her. She'd stay there quietly until we were ready to leave, jump off the bed, and then look back at Mom before walking out.
After my Mom died (at hospice), the first time we went to the house the dog ran into the room, and just stood there before turning and walking away slowly. She did not look back. To my knowledge, she never got up on that bed again.