Fetching details from the dictionary...

thank you (for your hard work); I appreciate your efforts
遅くまで残業してくれて御苦労様でした。
Thank you for working overtime so late.
配達の方に御苦労様と声をかけた。
I thanked the delivery person for their hard work.
雨の中の作業、御苦労様でございました。
Thank you for working in the rain.