Buíochas is a masculine noun that means thanks, gratitude
Le is a simple preposition that means with.
Dia is a masculine noun that means God.
Thus, Buíochas le Dia: thank God (literally, 'thanks [be] with God').