A polite phrase said after a meal to thank the cook or host (literally: 'It was a feast').
おいしかったです。ごちそうさまでした。
That was delicious. Thank you for the meal.
友達にランチをごちそうになったので、「ごちそうさまでした」と言った。
My friend treated me to lunch, so I said, 'Thank you for the meal.'
母が作った料理を全部食べて、母に向かって『ごちそうさまでした』と言った。
After finishing the meal my mother made, I said to her, 'Thank you for the meal.'