Bereishit Rabbah 88:7. Joseph interprets the cupbearer’s dream in prison. But when the cupbearer is restored to his position he forgets about Joseph. But God does not forget. Read more: https://moremidrash.com/joseph-and-the-cupbearer-memory-and-hope/