<prompt> Translate the following text to SwahiliThe end of Davids dynasty came in 587 b.c. , when Nebuchadnezzar, King of Babylon, invaded Judah to lay siege to Jerusalem.  <response>: Utawala wa Daudi ulikoma mwaka 587 KK, wakati Nebukadneza, mfalme wa Babeli, alipovamia Yuda na kuzingira Yerusalemu. 