Correct

伴君如伴虎

/ bàn jūn rú bàn hǔ / 
Strokes
https://i.cchatty2.com/filters:format(webp)/fit-in/684x0/img/202102/伴君如伴虎-Chinese-idioms-Cchatty-f1dc8d88-1105-4b54-994d-e5d869126b74-1612776394.jpg

Collocation

1
自古有伴君如伴虎的话
2
俗话说伴君如伴虎
3
有点伴君如伴虎的意味
4
真是伴君如伴虎啊

Definition

伴君如伴虎

Literally means:

keeping the emperor company is like living with a tiger

Actually means:

Literally it means staying close to the emperor and serving him is as risky as living with a tiger, for he may be killed by the emperor anytime. It carries a sense of worry and concern.

在皇帝身边做事如同在老虎旁边一样危险,随时有可能被皇帝杀了。多含有让人担心害怕的意味。

Example

Used as an independent sentence, as attributive or object. (独立成句、定语、宾语)
1
Bànjūn
伴君
rú
如
bàn
伴
hǔ
虎
  
,
tā
她
shāo
稍
yǒu
有
bù
不
rúyì
如意
  
,
jiù
就
dà
大
fāpíqi
发脾气
  
,
zài
在
tā
她
shēnbiān
身边
de
的
gōngzuò
工作
rényuán
人员
dōu
都
hěn
很
hàipà
害怕
  
。

Companion jun like a tiger, she slightly unsatisfactory, she lost her temper, in her side of the staff are very afraid.

2
Nǐ
你
jiù
就
biè
别
zéguài
责怪
nǐ
你
mèimei
妹妹
le
了
  
,
nǐ
你
mèimei
妹妹
yě
也
yǒu
有
wéinán
为难
zhī
之
chǔ
处
  
,
zìgǔ
自古
yǒu
有
bànjūn
伴君
rú
如
bàn
伴
hǔ
虎
de
的
huà
话
  
,
nǐ
你
méi
没
tīng
听
guò
过
ma
吗
  
?

Don't blame your sister, your sister also has difficulties, since ancient times there are accompanied by a tiger words, you have not heard?

3
Tā
她
jiàgěi
嫁给
zhèyàng
这样
de
的
rén
人
zuò
做
qīzǐ
妻子
yě
也
gòu
够
tíxīndiàodǎn
提心吊胆
de
的
  
,
zhēnshi
真是
bànjūn
伴君
rú
如
bàn
伴
hǔ
虎
ā
啊
  
!

She married such a person to be a wife is also enough to worry about, really accompanied by a king like a tiger ah!