#Where was Jeremiah when Yahweh gave a message to him?

Jeremiah was imprisoned in the courtyard of the house of the king of Judah. [32:1-2]

#What was the Babylonian army doing?

It was attacking Jerusalem. [32:2]