#HalachaYomi OC 188:9 Eating on Shabat, Shabat ended, say Retze in Birkat Hamazon; follow start of meal. Same for Rosh Hodesh/Purim/Hanuka.